aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
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 /include/asm-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 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/ppc_asm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/ppc_asm.h b/include/asm-powerpc/ppc_asm.h
index e4350e406d2a..6aae414a161b 100644
--- a/include/asm-powerpc/ppc_asm.h
+++ b/include/asm-powerpc/ppc_asm.h
@@ -193,6 +193,10 @@ n:
193#define CMPI cmpdi 193#define CMPI cmpdi
194 194
195#else /* 32-bit */ 195#else /* 32-bit */
196#define LOADADDR(rn,name) \
197 lis rn,name@ha \
198 addi rn,rn,name@l
199
196#define LOADBASE(rn,name) \ 200#define LOADBASE(rn,name) \
197 lis rn,name@ha 201 lis rn,name@ha
198 202