mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
libc: Improve setjmp comments
Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D40879
This commit is contained in:
parent
6eabf4ce35
commit
acfd261524
3 changed files with 9 additions and 9 deletions
|
|
@ -48,8 +48,8 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
ENTRY(_setjmp)
|
||||
movq %rdi,%rax
|
||||
movq 0(%rsp),%rdx /* retval */
|
||||
movq %rdx, 0(%rax) /* 0; retval */
|
||||
movq 0(%rsp),%rdx /* return address */
|
||||
movq %rdx, 0(%rax) /* 0; return address */
|
||||
movq %rbx, 8(%rax) /* 1; rbx */
|
||||
movq %rsp,16(%rax) /* 2; rsp */
|
||||
movq %rbp,24(%rax) /* 3; rbp */
|
||||
|
|
@ -88,7 +88,7 @@ ENTRY(___longjmp)
|
|||
testq %rax,%rax
|
||||
jnz 1f
|
||||
incq %rax
|
||||
1: movq %rcx,0(%rsp)
|
||||
1: movq %rcx,0(%rsp) /* return address */
|
||||
ret
|
||||
END(___longjmp)
|
||||
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ ENTRY(setjmp)
|
|||
call __libc_sigprocmask
|
||||
popq %rdi
|
||||
movq %rdi,%rcx
|
||||
movq 0(%rsp),%rdx /* retval */
|
||||
movq %rdx, 0(%rcx) /* 0; retval */
|
||||
movq 0(%rsp),%rdx /* return address */
|
||||
movq %rdx, 0(%rcx) /* 0; return address */
|
||||
movq %rbx, 8(%rcx) /* 1; rbx */
|
||||
movq %rsp,16(%rcx) /* 2; rsp */
|
||||
movq %rbp,24(%rcx) /* 3; rbp */
|
||||
|
|
@ -109,7 +109,7 @@ ENTRY(__longjmp)
|
|||
testq %rax,%rax
|
||||
jnz 1f
|
||||
incq %rax
|
||||
1: movq %rcx,0(%rsp)
|
||||
1: movq %rcx,0(%rsp) /* return address */
|
||||
ret
|
||||
END(__longjmp)
|
||||
|
||||
|
|
|
|||
|
|
@ -66,8 +66,8 @@ ENTRY(sigsetjmp)
|
|||
call __libc_sigprocmask
|
||||
popq %rdi
|
||||
2: movq %rdi,%rcx
|
||||
movq 0(%rsp),%rdx /* retval */
|
||||
movq %rdx, 0(%rcx) /* 0; retval */
|
||||
movq 0(%rsp),%rdx /* return address */
|
||||
movq %rdx, 0(%rcx) /* 0; return address */
|
||||
movq %rbx, 8(%rcx) /* 1; rbx */
|
||||
movq %rsp,16(%rcx) /* 2; rsp */
|
||||
movq %rbp,24(%rcx) /* 3; rbp */
|
||||
|
|
@ -109,7 +109,7 @@ ENTRY(__siglongjmp)
|
|||
testq %rax,%rax
|
||||
jnz 1f
|
||||
incq %rax
|
||||
1: movq %rcx,0(%rsp)
|
||||
1: movq %rcx,0(%rsp) /* return address */
|
||||
ret
|
||||
END(__siglongjmp)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue