summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@amacapital.net>2014-12-04 12:25:37 -0800
committerAndy Lutomirski <luto@amacapital.net>2014-12-04 12:25:37 -0800
commit74d1ad147f3079da3916c4ce8664b0055aa83cb8 (patch)
treee03ff3f29957a70f3e49f231b8d3a680e70bcd16
parent67b8ffac570cc44cd6f4d975bdf119d378417cba (diff)
downloadmisc-tests-74d1ad147f3079da3916c4ce8664b0055aa83cb8.tar.gz
sigreturn: Fix trampoline asm to work on all CPUs
-rw-r--r--sigreturn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sigreturn.c b/sigreturn.c
index e2de0e5..8c26c5d 100644
--- a/sigreturn.c
+++ b/sigreturn.c
@@ -55,7 +55,7 @@ asm (".pushsection .text\n\t"
".type int3, @function\n\t"
".align 4096\n\t"
"int3:\n\t"
- "mov %ss,%ax\n\t"
+ "mov %ss,%eax\n\t"
"int3\n\t"
".size int3, . - int3\n\t"
".align 4096, 0xcc\n\t"