Permalink
Browse files

Use an RPL of 3 when setting %fs.

Oddly, using RPL 0 seems to work, but breaks ptrace().
  • Loading branch information...
1 parent e03d4a0 commit 25f6a1a3125cf2cf3828718d23bce19a089112dc @nelhage committed Nov 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 bt.c
View
2 bt.c
@@ -807,6 +807,6 @@ void bt_translate_and_run(beta_cpu *cpu, uint32_t exact, ccbuff chainptr) {
LOG("Chaining to frag 0x%08x", cfrag->start_pc);
}
- __asm__("movw %%ax, %%fs\n" :: "a"(cpu->segment<<3|0x4));
+ __asm__("movw %%ax, %%fs\n" :: "a"(cpu->segment<<3|0x7));
bt_enter(cfrag->code);
}

0 comments on commit 25f6a1a

Please sign in to comment.