summaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/powerpc64/dl-trampoline.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-01-08 05:41:58 +0000
committerUlrich Drepper <drepper@redhat.com>2005-01-08 05:41:58 +0000
commit85555eeb7b4c2cee0714c8860caa4f5851b9045b (patch)
treee827e8d2cbc49bc77e735f6babafd391c48d2f75 /sysdeps/powerpc/powerpc64/dl-trampoline.S
parent2413fdba7a02ba8916f75d17199a6e9133a8f7b0 (diff)
Update.
* sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve): Extend _dl_prof_resolve to add pass extra parameters to _dl_profile_fixup and set up structure with register content.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/dl-trampoline.S')
-rw-r--r--sysdeps/powerpc/powerpc64/dl-trampoline.S68
1 files changed, 34 insertions, 34 deletions
diff --git a/sysdeps/powerpc/powerpc64/dl-trampoline.S b/sysdeps/powerpc/powerpc64/dl-trampoline.S
index 71d16f2dba..946ad8a3e3 100644
--- a/sysdeps/powerpc/powerpc64/dl-trampoline.S
+++ b/sysdeps/powerpc/powerpc64/dl-trampoline.S
@@ -24,47 +24,47 @@
EALIGN(_dl_runtime_resolve, 4, 0)
/* We need to save the registers used to pass parameters, ie. r3 thru
r10; the registers are saved in a stack frame. */
- stdu 1,-128(1)
- std 3,48(1)
- mr 3,11
- std 4,56(1)
- sldi 4,0,1
- std 5,64(1)
- add 4,4,0
- std 6,72(1)
- sldi 4,4,3
- std 7,80(1)
- mflr 0
- std 8,88(1)
+ stdu r1,-128(r1)
+ std r3,48(r1)
+ mr r3,r11
+ std r4,56(r1)
+ sldi r4,r0,1
+ std r5,64(r1)
+ add r4,r4,r0
+ std r6,72(r1)
+ sldi r4,r4,3
+ std r7,80(r1)
+ mflr r0
+ std r8,88(r1)
/* Store the LR in the LR Save area of the previous frame. */
- std 0,128+16(1)
- mfcr 0
- std 9,96(1)
- std 10,104(1)
+ std r0,128+16(r1)
+ mfcr r0
+ std r9,96(r1)
+ std r10,104(r1)
/* I'm almost certain we don't have to save cr... be safe. */
- std 0,8(1)
+ std r0,8(r1)
bl JUMPTARGET(_dl_fixup)
/* Put the registers back. */
- ld 0,128+16(1)
- ld 10,104(1)
- ld 9,96(1)
- ld 8,88(1)
- ld 7,80(1)
- mtlr 0
- ld 0,8(1)
- ld 6,72(1)
- ld 5,64(1)
- ld 4,56(1)
- mtcrf 0xFF,0
+ ld r0,128+16(r1)
+ ld r10,104(r1)
+ ld r9,96(r1)
+ ld r8,88(r1)
+ ld r7,80(r1)
+ mtlr r0
+ ld r0,8(r1)
+ ld r6,72(r1)
+ ld r5,64(r1)
+ ld r4,56(r1)
+ mtcrf 0xFF,r0
/* Load the target address, toc and static chain reg from the function
descriptor returned by fixup. */
- ld 0,0(3)
- ld 2,8(3)
- mtctr 0
- ld 11,16(3)
- ld 3,48(1)
+ ld r0,0(r3)
+ ld r2,8(r3)
+ mtctr r0
+ ld r11,16(r3)
+ ld r3,48(r1)
/* Unwind the stack frame, and jump. */
- addi 1,1,128
+ addi r1,r1,128
bctr
END(_dl_runtime_resolve)