aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/misc_32.S
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-10-12 03:44:55 -0400
committerStephen Rothwell <sfr@canb.auug.org.au>2005-10-12 19:49:51 -0400
commit7062018687da3d5d4966f58d6f0a58528b1e331b (patch)
treeccd1c08ab25397d44f34382fc353df2e5cb591fc /arch/powerpc/kernel/misc_32.S
parent4920960f577edcb0a5ef03823a53911cca5875e1 (diff)
powerpc: create 32 bit LOADADDR macro
and use it in misc_32.S Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/powerpc/kernel/misc_32.S')
-rw-r--r--arch/powerpc/kernel/misc_32.S6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S
index fa8c20ffec78..27274108116f 100644
--- a/arch/powerpc/kernel/misc_32.S
+++ b/arch/powerpc/kernel/misc_32.S
@@ -43,8 +43,7 @@ _GLOBAL(reloc_offset)
43 mflr r0 43 mflr r0
44 bl 1f 44 bl 1f
451: mflr r3 451: mflr r3
46 lis r4,1b@ha 46 LOADADDR(r4,1b)
47 addi r4,r4,1b@l
48 subf r3,r4,r3 47 subf r3,r4,r3
49 mtlr r0 48 mtlr r0
50 blr 49 blr
@@ -56,8 +55,7 @@ _GLOBAL(add_reloc_offset)
56 mflr r0 55 mflr r0
57 bl 1f 56 bl 1f
581: mflr r5 571: mflr r5
59 lis r4,1b@ha 58 LOADADDR(r4,1b)
60 addi r4,r4,1b@l
61 subf r5,r4,r5 59 subf r5,r4,r5
62 add r3,r3,r5 60 add r3,r3,r5
63 mtlr r0 61 mtlr r0