mirror of git://sourceware.org/git/glibc.git
Use R*_LP on SP and PC in __longjmp.S and setjmp.S
This commit is contained in:
parent
9ea01d93f7
commit
eda4170670
|
@ -1,3 +1,8 @@
|
||||||
|
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
|
||||||
|
* sysdeps/x86_64/setjmp.S: Likewise.
|
||||||
|
|
||||||
2012-05-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
2012-05-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
|
* sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
|
||||||
|
|
|
@ -25,13 +25,13 @@
|
||||||
.text
|
.text
|
||||||
ENTRY(__longjmp)
|
ENTRY(__longjmp)
|
||||||
/* Restore registers. */
|
/* Restore registers. */
|
||||||
movq (JB_RSP*8)(%rdi),%r8
|
mov (JB_RSP*8)(%rdi),%R8_LP
|
||||||
movq (JB_RBP*8)(%rdi),%r9
|
movq (JB_RBP*8)(%rdi),%r9
|
||||||
movq (JB_PC*8)(%rdi),%rdx
|
mov (JB_PC*8)(%rdi),%RDX_LP
|
||||||
#ifdef PTR_DEMANGLE
|
#ifdef PTR_DEMANGLE
|
||||||
PTR_DEMANGLE (%r8)
|
PTR_DEMANGLE (%R8_LP)
|
||||||
PTR_DEMANGLE (%r9)
|
PTR_DEMANGLE (%r9)
|
||||||
PTR_DEMANGLE (%rdx)
|
PTR_DEMANGLE (%RDX_LP)
|
||||||
#endif
|
#endif
|
||||||
/* We add unwind information for the target here. */
|
/* We add unwind information for the target here. */
|
||||||
cfi_def_cfa(%rdi, 0)
|
cfi_def_cfa(%rdi, 0)
|
||||||
|
@ -50,7 +50,7 @@ ENTRY(__longjmp)
|
||||||
movq (JB_R15*8)(%rdi),%r15
|
movq (JB_R15*8)(%rdi),%r15
|
||||||
/* Set return value for setjmp. */
|
/* Set return value for setjmp. */
|
||||||
mov %esi, %eax
|
mov %esi, %eax
|
||||||
movq %r8,%rsp
|
mov %R8_LP,%RSP_LP
|
||||||
movq %r9,%rbp
|
movq %r9,%rbp
|
||||||
jmpq *%rdx
|
jmpq *%rdx
|
||||||
END (__longjmp)
|
END (__longjmp)
|
||||||
|
|
|
@ -34,14 +34,14 @@ ENTRY (__sigsetjmp)
|
||||||
movq %r13, (JB_R13*8)(%rdi)
|
movq %r13, (JB_R13*8)(%rdi)
|
||||||
movq %r14, (JB_R14*8)(%rdi)
|
movq %r14, (JB_R14*8)(%rdi)
|
||||||
movq %r15, (JB_R15*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
|
#ifdef PTR_MANGLE
|
||||||
PTR_MANGLE (%rdx)
|
PTR_MANGLE (%RDX_LP)
|
||||||
#endif
|
#endif
|
||||||
movq %rdx, (JB_RSP*8)(%rdi)
|
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
|
#ifdef PTR_MANGLE
|
||||||
PTR_MANGLE (%rax)
|
PTR_MANGLE (%RAX_LP)
|
||||||
#endif
|
#endif
|
||||||
movq %rax, (JB_PC*8)(%rdi)
|
movq %rax, (JB_PC*8)(%rdi)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue