diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-12 09:44:55 +0200 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-13 01:49:51 +0200 |
commit | 7062018687da3d5d4966f58d6f0a58528b1e331b (patch) | |
tree | ccd1c08ab25397d44f34382fc353df2e5cb591fc /include/asm-powerpc/ppc_asm.h | |
parent | powerpc: consolidate cputable.c (diff) | |
download | linux-7062018687da3d5d4966f58d6f0a58528b1e331b.tar.xz linux-7062018687da3d5d4966f58d6f0a58528b1e331b.zip |
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/ppc_asm.h')
-rw-r--r-- | include/asm-powerpc/ppc_asm.h | 4 |
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 |