1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00

libc: Improve setjmp comments

Reviewed by:		imp, kib
Differential Revision:	https://reviews.freebsd.org/D40879
This commit is contained in:
Dmitry Chagin 2023-07-06 20:21:54 +03:00
parent 6eabf4ce35
commit acfd261524
3 changed files with 9 additions and 9 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)