aboutsummaryrefslogtreecommitdiff
path: root/libffi/src/powerpc/darwin.S
diff options
context:
space:
mode:
Diffstat (limited to 'libffi/src/powerpc/darwin.S')
-rw-r--r--libffi/src/powerpc/darwin.S46
1 files changed, 23 insertions, 23 deletions
diff --git a/libffi/src/powerpc/darwin.S b/libffi/src/powerpc/darwin.S
index 771238c..b608e9c 100644
--- a/libffi/src/powerpc/darwin.S
+++ b/libffi/src/powerpc/darwin.S
@@ -40,8 +40,8 @@
.align 2
_ffi_call_DARWIN:
LFB0:
- mr r12,r8 /* We only need r12 until the call,
- so it doesn't have to be saved... */
+ mr r12,r8 /* We only need r12 until the call,
+ so it doesn't have to be saved. */
LFB1:
/* Save the old stack pointer as AP. */
mr r8,r1
@@ -52,16 +52,16 @@ LCFI0:
/* Save registers we use. */
mflr r9
- stw r28,-16(r8)
+ stw r28,-16(r8)
stw r29,-12(r8)
- stw r30, -8(r8)
- stw r31, -4(r8)
+ stw r30,-8(r8)
+ stw r31,-4(r8)
- stw r9, 8(r8)
- stw r2, 20(r1)
+ stw r9,8(r8)
+ stw r2,20(r1)
LCFI1:
- /* Save arguments over call... */
+ /* Save arguments over call. */
mr r31,r5 /* flags, */
mr r30,r6 /* rvalue, */
mr r29,r7 /* function address, */
@@ -71,7 +71,7 @@ LCFI2:
mr r4,r1
li r9,0
- mtctr r12 // r12 holds address of _ffi_prep_args
+ mtctr r12 /* r12 holds address of _ffi_prep_args. */
bctrl
lwz r2,20(r1)
@@ -82,19 +82,19 @@ LCFI2:
mtctr r29
/* Load all those argument registers.
We have set up a nice stack frame, just load it into registers. */
- lwz r3, 20+(1*4)(r1)
- lwz r4, 20+(2*4)(r1)
- lwz r5, 20+(3*4)(r1)
- lwz r6, 20+(4*4)(r1)
+ lwz r3,20+(1*4)(r1)
+ lwz r4,20+(2*4)(r1)
+ lwz r5,20+(3*4)(r1)
+ lwz r6,20+(4*4)(r1)
nop
- lwz r7, 20+(5*4)(r1)
- lwz r8, 20+(6*4)(r1)
- lwz r9, 20+(7*4)(r1)
+ lwz r7,20+(5*4)(r1)
+ lwz r8,20+(6*4)(r1)
+ lwz r9,20+(7*4)(r1)
lwz r10,20+(8*4)(r1)
L1:
/* Load all the FP registers. */
- bf 6,L2 // 2f + 0x18
+ bf 6,L2 /* No floats to load. */
lfd f1,-16-(13*8)(r28)
lfd f2,-16-(12*8)(r28)
lfd f3,-16-(11*8)(r28)
@@ -113,8 +113,8 @@ L1:
lfd f13,-16-(1*8)(r28)
L2:
- mr r12,r29 /* Put the target address in r12 as specified. */
- mtctr r12
+ mr r12,r29 /* Put the target address in r12 as specified. */
+ mtctr r12
nop
nop
/* Make the call. */
@@ -129,14 +129,14 @@ L2:
bf 28,L(done_return_value)
stw r4,4(r30)
- /* Fall through... */
+ /* Fall through. */
L(done_return_value):
/* Restore the registers we used and return. */
- lwz r9, 8(r28)
- lwz r31, -4(r28)
+ lwz r9,8(r28)
+ lwz r31,-4(r28)
mtlr r9
- lwz r30, -8(r28)
+ lwz r30,-8(r28)
lwz r29,-12(r28)
lwz r28,-16(r28)
lwz r1,0(r1)