about summary refs log tree commit diff
path: root/sysdeps/x86_64/setjmp.S
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-15 12:46:04 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-15 12:46:04 -0700
commiteda4170670ddd0dfdc98c7b59ccd274fe18b3636 (patch)
tree3efe58fee103ca40826239db2b787b161a5e1f71 /sysdeps/x86_64/setjmp.S
parent9ea01d93f7e08463febd23ad758e28973524f9be (diff)
downloadglibc-eda4170670ddd0dfdc98c7b59ccd274fe18b3636.tar.gz
glibc-eda4170670ddd0dfdc98c7b59ccd274fe18b3636.tar.xz
glibc-eda4170670ddd0dfdc98c7b59ccd274fe18b3636.zip
Use R*_LP on SP and PC in __longjmp.S and setjmp.S
Diffstat (limited to 'sysdeps/x86_64/setjmp.S')
-rw-r--r--sysdeps/x86_64/setjmp.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/x86_64/setjmp.S b/sysdeps/x86_64/setjmp.S
index 1902d1458d..87c095238c 100644
--- a/sysdeps/x86_64/setjmp.S
+++ b/sysdeps/x86_64/setjmp.S
@@ -34,14 +34,14 @@ ENTRY (__sigsetjmp)
 	movq %r13, (JB_R13*8)(%rdi)
 	movq %r14, (JB_R14*8)(%rdi)
 	movq %r15, (JB_R15*8)(%rdi)
-	leaq 8(%rsp), %rdx	/* Save SP as it will be after we return.  */
+	lea 8(%rsp), %RDX_LP	/* Save SP as it will be after we return.  */
 #ifdef PTR_MANGLE
-	PTR_MANGLE (%rdx)
+	PTR_MANGLE (%RDX_LP)
 #endif
 	movq %rdx, (JB_RSP*8)(%rdi)
-	movq (%rsp), %rax	/* Save PC we are returning to now.  */
+	mov (%rsp), %RAX_LP	/* Save PC we are returning to now.  */
 #ifdef PTR_MANGLE
-	PTR_MANGLE (%rax)
+	PTR_MANGLE (%RAX_LP)
 #endif
 	movq %rax, (JB_PC*8)(%rdi)