Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use an RPL of 3 when setting %fs.

Oddly, using RPL 0 seems to work, but breaks ptrace().
  • Loading branch information...
commit 25f6a1a3125cf2cf3828718d23bce19a089112dc 1 parent e03d4a0
@nelhage authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.