diff options
author | Michael Neuling <mikey@neuling.org> | 2012-06-25 09:33:20 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-10 05:18:22 -0400 |
commit | 55a5db184667433add3c8136c9e3b27899c79d3c (patch) | |
tree | 3748f7d76ae3d75ad2f299b3773e934d6171c6ae /arch | |
parent | 178f2ae092a6e70b08bcbf98dc2b7499d8196885 (diff) |
powerpc: Introduce new ___PPC_RA/B/S/T macros
These are currently the same as __PPC_RA/B/S/T but we'll wrap them
soon.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/include/asm/ppc-opcode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index 2671a6d9e4a7..7ad07dfbfdf7 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc/include/asm/ppc-opcode.h | |||
@@ -144,6 +144,10 @@ | |||
144 | #define PPC_INST_STBCIX 0x7c0007aa | 144 | #define PPC_INST_STBCIX 0x7c0007aa |
145 | 145 | ||
146 | /* macros to insert fields into opcodes */ | 146 | /* macros to insert fields into opcodes */ |
147 | #define ___PPC_RA(a) (((a) & 0x1f) << 16) | ||
148 | #define ___PPC_RB(b) (((b) & 0x1f) << 11) | ||
149 | #define ___PPC_RS(s) (((s) & 0x1f) << 21) | ||
150 | #define ___PPC_RT(t) ___PPC_RS(t) | ||
147 | #define __PPC_RA(a) (((a) & 0x1f) << 16) | 151 | #define __PPC_RA(a) (((a) & 0x1f) << 16) |
148 | #define __PPC_RB(b) (((b) & 0x1f) << 11) | 152 | #define __PPC_RB(b) (((b) & 0x1f) << 11) |
149 | #define __PPC_RS(s) (((s) & 0x1f) << 21) | 153 | #define __PPC_RS(s) (((s) & 0x1f) << 21) |