summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/gen/sigsetjmp.S
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-06-02 22:37:53 +0000
committerpeter <peter@FreeBSD.org>2003-06-02 22:37:53 +0000
commitcc4569f1717f17c3c99d389ca96bd1bf83d4f534 (patch)
tree95bdb2d5a64b6f432b285ae3945a5c88e79273ca /lib/libc/amd64/gen/sigsetjmp.S
parent2e06580e0ad39f5c7c00f2b475cab9003e17e6a8 (diff)
downloadFreeBSD-src-cc4569f1717f17c3c99d389ca96bd1bf83d4f534.zip
FreeBSD-src-cc4569f1717f17c3c99d389ca96bd1bf83d4f534.tar.gz
Cosmetic; record offsets used within jmpbuf
Diffstat (limited to 'lib/libc/amd64/gen/sigsetjmp.S')
-rw-r--r--lib/libc/amd64/gen/sigsetjmp.S22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libc/amd64/gen/sigsetjmp.S b/lib/libc/amd64/gen/sigsetjmp.S
index 94e1578..3b13801 100644
--- a/lib/libc/amd64/gen/sigsetjmp.S
+++ b/lib/libc/amd64/gen/sigsetjmp.S
@@ -58,27 +58,27 @@ __FBSDID("$FreeBSD$");
*/
ENTRY(sigsetjmp)
- movl %esi,88(%rdi)
+ movl %esi,88(%rdi) /* 11; savemask */
testl %esi,%esi
jz 2f
pushq %rdi
movq %rdi,%rcx
movq $1,%rdi /* SIG_BLOCK */
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))
popq %rdi
2: movq %rdi,%rcx
movq 0(%rsp),%rdx /* retval */
- movq %rdx, 0(%rcx) /* retval */
- movq %rbx, 8(%rcx)
- movq %rsp,16(%rcx)
- movq %rbp,24(%rcx)
- movq %r12,32(%rcx)
- movq %r13,40(%rcx)
- movq %r14,48(%rcx)
- movq %r15,56(%rcx)
- fnstcw 64(%rcx)
+ movq %rdx, 0(%rcx) /* 0; retval */
+ movq %rbx, 8(%rcx) /* 1; rbx */
+ movq %rsp,16(%rcx) /* 2; rsp */
+ movq %rbp,24(%rcx) /* 3; rbp */
+ movq %r12,32(%rcx) /* 4; r12 */
+ movq %r13,40(%rcx) /* 5; r13 */
+ movq %r14,48(%rcx) /* 6; r14 */
+ movq %r15,56(%rcx) /* 7; r15 */
+ fnstcw 64(%rcx) /* 8; fpu cw */
xorq %rax,%rax
ret
OpenPOWER on IntegriCloud