Blame src/setjmp/nt64/setjmp.s
|
|
860627 |
.text
|
|
|
860627 |
.globl __setjmp
|
|
|
860627 |
.globl _setjmp
|
|
|
860627 |
.globl setjmp
|
|
|
860627 |
|
|
|
ed42e6 |
.def __setjmp; .scl 2; .type 32; .endef
|
|
|
ed42e6 |
.def _setjmp; .scl 2; .type 32; .endef
|
|
|
ed42e6 |
.def setjmp; .scl 2; .type 32; .endef
|
|
|
ed42e6 |
|
|
|
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
|