summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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:
#define CMPI cmpdi
#else /* 32-bit */
+#define LOADADDR(rn,name) \
+ lis rn,name@ha \
+ addi rn,rn,name@l
+
#define LOADBASE(rn,name) \
lis rn,name@ha