mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
Fix assembler
This commit is contained in:
parent
0fe354398f
commit
0ac7da3f6d
@ -30,14 +30,14 @@
|
|||||||
.align ALIGNARG(4)
|
.align ALIGNARG(4)
|
||||||
C_LABEL(_mcount)
|
C_LABEL(_mcount)
|
||||||
/* Allocate space for 7 registers. */
|
/* Allocate space for 7 registers. */
|
||||||
subq $56,$rsp
|
subq $56,%rsp
|
||||||
movq $rax,($rsp)
|
movq %rax,(%rsp)
|
||||||
movq %rcx,8($rsp)
|
movq %rcx,8(%rsp)
|
||||||
movq %rdx,16($rsp)
|
movq %rdx,16(%rsp)
|
||||||
movq %rsi,24($rsp)
|
movq %rsi,24(%rsp)
|
||||||
movq %rdi,32($rsp)
|
movq %rdi,32(%rsp)
|
||||||
movq %r8,40($rsp)
|
movq %r8,40(%rsp)
|
||||||
movq %r9,48($rsp)
|
movq %r9,48(%rsp)
|
||||||
|
|
||||||
/* Setup parameter for __mcount_internal. */
|
/* Setup parameter for __mcount_internal. */
|
||||||
/* selfpc is the return address on the stack. */
|
/* selfpc is the return address on the stack. */
|
||||||
@ -51,14 +51,14 @@ C_LABEL(_mcount)
|
|||||||
#endif
|
#endif
|
||||||
/* Pop the saved registers. Please note that `mcount' has no
|
/* Pop the saved registers. Please note that `mcount' has no
|
||||||
return value. */
|
return value. */
|
||||||
movq ($rsp),%r9
|
movq (%rsp),%r9
|
||||||
movq 8($rsp),%r8
|
movq 8(%rsp),%r8
|
||||||
movq 16($rsp),%rdi
|
movq 16(%rsp),%rdi
|
||||||
movq 24($rsp),%rsi
|
movq 24(%rsp),%rsi
|
||||||
movq 32($rsp),%rdx
|
movq 32(%rsp),%rdx
|
||||||
movq 40($rsp),%rcx
|
movq 40(%rsp),%rcx
|
||||||
movq 48($rsp),%rax
|
movq 48(%rsp),%rax
|
||||||
addq $56,$rsp
|
addq $56,%rsp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
ASM_SIZE_DIRECTIVE(C_SYMBOL_NAME(_mcount))
|
ASM_SIZE_DIRECTIVE(C_SYMBOL_NAME(_mcount))
|
||||||
|
Loading…
Reference in New Issue
Block a user