Blame src/setjmp/nt64/setjmp.s
|
|
860627 |
.text
|
|
|
860627 |
.globl __setjmp
|
|
|
860627 |
.globl _setjmp
|
|
|
860627 |
.globl setjmp
|
|
|
860627 |
|
|
|
860627 |
__setjmp:
|
|
|
860627 |
_setjmp:
|
|
|
860627 |
setjmp:
|
|
|
860627 |
pop (%rcx) # return address
|
|
|
860627 |
mov %rsp, 0x08(%rcx) # caller's stack pointer
|
|
|
860627 |
push (%rcx) # restore own stack pointer
|
|
|
860627 |
|
|
|
860627 |
mov %rbx, 0x10(%rcx)
|
|
|
860627 |
mov %rbp, 0x18(%rcx)
|
|
|
860627 |
mov %rdi, 0x20(%rcx)
|
|
|
860627 |
mov %rsi, 0x28(%rcx)
|
|
|
860627 |
mov %r12, 0x30(%rcx)
|
|
|
860627 |
mov %r13, 0x38(%rcx)
|
|
|
860627 |
mov %r14, 0x40(%rcx)
|
|
|
860627 |
mov %r15, 0x48(%rcx)
|
|
|
860627 |
|
|
|
860627 |
xor %eax, %eax
|
|
|
860627 |
ret
|