summaryrefslogtreecommitdiff
path: root/src/setjmp/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'src/setjmp/x86_64')
-rw-r--r--src/setjmp/x86_64/longjmp.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/setjmp/x86_64/longjmp.s b/src/setjmp/x86_64/longjmp.s
index e175a4b9..e709acad 100644
--- a/src/setjmp/x86_64/longjmp.s
+++ b/src/setjmp/x86_64/longjmp.s
@@ -5,10 +5,10 @@
.type longjmp,@function
_longjmp:
longjmp:
- mov %rsi,%rax /* val will be longjmp return */
- test %rax,%rax
+ mov %esi,%eax /* val will be longjmp return */
+ test %esi,%esi
jnz 1f
- inc %rax /* if val==0, val=1 per longjmp semantics */
+ inc %eax /* if val==0, val=1 per longjmp semantics */
1:
mov (%rdi),%rbx /* rdi is the jmp_buf, restore regs from it */
mov 8(%rdi),%rbp