summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-10-12 17:44:55 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2005-10-13 09:49:51 +1000
commit7062018687da3d5d4966f58d6f0a58528b1e331b (patch)
treeccd1c08ab25397d44f34382fc353df2e5cb591fc /arch/powerpc
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')
-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 fa8c20ffec7..27274108116 100644
--- a/arch/powerpc/kernel/misc_32.S
+++ b/arch/powerpc/kernel/misc_32.S
@@ -43,8 +43,7 @@ _GLOBAL(reloc_offset)
mflr r0
bl 1f
1: mflr r3
- lis r4,1b@ha
- addi r4,r4,1b@l
+ LOADADDR(r4,1b)
subf r3,r4,r3
mtlr r0
blr
@@ -56,8 +55,7 @@ _GLOBAL(add_reloc_offset)
mflr r0
bl 1f
1: mflr r5
- lis r4,1b@ha
- addi r4,r4,1b@l
+ LOADADDR(r4,1b)
subf r5,r4,r5
add r3,r3,r5
mtlr r0