diff options
Diffstat (limited to 'src/setjmp/x32')
-rw-r--r-- | src/setjmp/x32/longjmp.s | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/setjmp/x32/longjmp.s b/src/setjmp/x32/longjmp.s index e175a4b9..e709acad 100644 --- a/src/setjmp/x32/longjmp.s +++ b/src/setjmp/x32/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 |