Cosmetic; record offsets used within jmpbuf

This commit is contained in:
Peter Wemm 2003-06-02 22:37:53 +00:00
parent c22acefba5
commit 3191d840e0
3 changed files with 30 additions and 30 deletions

View File

@ -53,15 +53,15 @@ __FBSDID("$FreeBSD$");
ENTRY(_setjmp) ENTRY(_setjmp)
movq %rdi,%rax movq %rdi,%rax
movq 0(%rsp),%rdx /* retval */ movq 0(%rsp),%rdx /* retval */
movq %rdx, 0(%rax) /* retval */ movq %rdx, 0(%rax) /* 0; retval */
movq %rbx, 8(%rax) movq %rbx, 8(%rax) /* 1; rbx */
movq %rsp,16(%rax) movq %rsp,16(%rax) /* 2; rsp */
movq %rbp,24(%rax) movq %rbp,24(%rax) /* 3; rbp */
movq %r12,32(%rax) movq %r12,32(%rax) /* 4; r12 */
movq %r13,40(%rax) movq %r13,40(%rax) /* 5; r13 */
movq %r14,48(%rax) movq %r14,48(%rax) /* 6; r14 */
movq %r15,56(%rax) movq %r15,56(%rax) /* 7; r15 */
fnstcw 64(%rax) fnstcw 64(%rax) /* 8; fpu cw */
xorq %rax,%rax xorq %rax,%rax
ret ret

View File

@ -57,20 +57,20 @@ ENTRY(setjmp)
movq %rdi,%rcx movq %rdi,%rcx
movq $1,%rdi /* SIG_BLOCK */ movq $1,%rdi /* SIG_BLOCK */
movq $0,%rsi /* (sigset_t*)set */ movq $0,%rsi /* (sigset_t*)set */
leaq 72(%rcx),%rdx /* (sigset_t*)oset */ leaq 72(%rcx),%rdx /* 9,10; (sigset_t*)oset */
call PIC_PLT(CNAME(_sigprocmask)) call PIC_PLT(CNAME(_sigprocmask))
popq %rdi popq %rdi
movq %rdi,%rcx movq %rdi,%rcx
movq 0(%rsp),%rdx /* retval */ movq 0(%rsp),%rdx /* retval */
movq %rdx, 0(%rcx) /* retval */ movq %rdx, 0(%rcx) /* 0; retval */
movq %rbx, 8(%rcx) movq %rbx, 8(%rcx) /* 1; rbx */
movq %rsp,16(%rcx) movq %rsp,16(%rcx) /* 2; rsp */
movq %rbp,24(%rcx) movq %rbp,24(%rcx) /* 3; rbp */
movq %r12,32(%rcx) movq %r12,32(%rcx) /* 4; r12 */
movq %r13,40(%rcx) movq %r13,40(%rcx) /* 5; r13 */
movq %r14,48(%rcx) movq %r14,48(%rcx) /* 6; r14 */
movq %r15,56(%rcx) movq %r15,56(%rcx) /* 7; r15 */
fnstcw 64(%rcx) fnstcw 64(%rcx) /* 8; fpu cw */
xorq %rax,%rax xorq %rax,%rax
ret ret

View File

@ -58,27 +58,27 @@ __FBSDID("$FreeBSD$");
*/ */
ENTRY(sigsetjmp) ENTRY(sigsetjmp)
movl %esi,88(%rdi) movl %esi,88(%rdi) /* 11; savemask */
testl %esi,%esi testl %esi,%esi
jz 2f jz 2f
pushq %rdi pushq %rdi
movq %rdi,%rcx movq %rdi,%rcx
movq $1,%rdi /* SIG_BLOCK */ movq $1,%rdi /* SIG_BLOCK */
movq $0,%rsi /* (sigset_t*)set */ movq $0,%rsi /* (sigset_t*)set */
leaq 72(%rcx),%rdx /* (sigset_t*)oset */ leaq 72(%rcx),%rdx /* 9,10 (sigset_t*)oset */
call PIC_PLT(CNAME(_sigprocmask)) call PIC_PLT(CNAME(_sigprocmask))
popq %rdi popq %rdi
2: movq %rdi,%rcx 2: movq %rdi,%rcx
movq 0(%rsp),%rdx /* retval */ movq 0(%rsp),%rdx /* retval */
movq %rdx, 0(%rcx) /* retval */ movq %rdx, 0(%rcx) /* 0; retval */
movq %rbx, 8(%rcx) movq %rbx, 8(%rcx) /* 1; rbx */
movq %rsp,16(%rcx) movq %rsp,16(%rcx) /* 2; rsp */
movq %rbp,24(%rcx) movq %rbp,24(%rcx) /* 3; rbp */
movq %r12,32(%rcx) movq %r12,32(%rcx) /* 4; r12 */
movq %r13,40(%rcx) movq %r13,40(%rcx) /* 5; r13 */
movq %r14,48(%rcx) movq %r14,48(%rcx) /* 6; r14 */
movq %r15,56(%rcx) movq %r15,56(%rcx) /* 7; r15 */
fnstcw 64(%rcx) fnstcw 64(%rcx) /* 8; fpu cw */
xorq %rax,%rax xorq %rax,%rax
ret ret