diff options
author | Michael Neuling <mikey@neuling.org> | 2012-06-25 09:33:24 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-10 05:18:33 -0400 |
commit | f4c015795c74ec31b7ad0b8e11d07946fe853db4 (patch) | |
tree | 46df0cd44803144aab05eea2419f890c38d01ae0 /arch/powerpc/include | |
parent | 0b7673c35e9240a364594ac4f2c2dd2c111c0aba (diff) |
powerpc: Add defines for RA 0-R31
R0 is special since it'll be 0.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/ppc-opcode.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index d14508f82247..03ec90fca009 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc/include/asm/ppc-opcode.h | |||
@@ -48,6 +48,39 @@ | |||
48 | #define __REG_R30 30 | 48 | #define __REG_R30 30 |
49 | #define __REG_R31 31 | 49 | #define __REG_R31 31 |
50 | 50 | ||
51 | #define __REGA0_0 0 | ||
52 | #define __REGA0_R1 1 | ||
53 | #define __REGA0_R2 2 | ||
54 | #define __REGA0_R3 3 | ||
55 | #define __REGA0_R4 4 | ||
56 | #define __REGA0_R5 5 | ||
57 | #define __REGA0_R6 6 | ||
58 | #define __REGA0_R7 7 | ||
59 | #define __REGA0_R8 8 | ||
60 | #define __REGA0_R9 9 | ||
61 | #define __REGA0_R10 10 | ||
62 | #define __REGA0_R11 11 | ||
63 | #define __REGA0_R12 12 | ||
64 | #define __REGA0_R13 13 | ||
65 | #define __REGA0_R14 14 | ||
66 | #define __REGA0_R15 15 | ||
67 | #define __REGA0_R16 16 | ||
68 | #define __REGA0_R17 17 | ||
69 | #define __REGA0_R18 18 | ||
70 | #define __REGA0_R19 19 | ||
71 | #define __REGA0_R20 20 | ||
72 | #define __REGA0_R21 21 | ||
73 | #define __REGA0_R22 22 | ||
74 | #define __REGA0_R23 23 | ||
75 | #define __REGA0_R24 24 | ||
76 | #define __REGA0_R25 25 | ||
77 | #define __REGA0_R26 26 | ||
78 | #define __REGA0_R27 27 | ||
79 | #define __REGA0_R28 28 | ||
80 | #define __REGA0_R29 29 | ||
81 | #define __REGA0_R30 30 | ||
82 | #define __REGA0_R31 31 | ||
83 | |||
51 | /* sorted alphabetically */ | 84 | /* sorted alphabetically */ |
52 | #define PPC_INST_DCBA 0x7c0005ec | 85 | #define PPC_INST_DCBA 0x7c0005ec |
53 | #define PPC_INST_DCBA_MASK 0xfc0007fe | 86 | #define PPC_INST_DCBA_MASK 0xfc0007fe |
@@ -149,6 +182,7 @@ | |||
149 | #define ___PPC_RS(s) (((s) & 0x1f) << 21) | 182 | #define ___PPC_RS(s) (((s) & 0x1f) << 21) |
150 | #define ___PPC_RT(t) ___PPC_RS(t) | 183 | #define ___PPC_RT(t) ___PPC_RS(t) |
151 | #define __PPC_RA(a) ___PPC_RA(__REG_##a) | 184 | #define __PPC_RA(a) ___PPC_RA(__REG_##a) |
185 | #define __PPC_RA0(a) ___PPC_RA(__REGA0_##a) | ||
152 | #define __PPC_RB(b) ___PPC_RB(__REG_##b) | 186 | #define __PPC_RB(b) ___PPC_RB(__REG_##b) |
153 | #define __PPC_RS(s) ___PPC_RS(__REG_##s) | 187 | #define __PPC_RS(s) ___PPC_RS(__REG_##s) |
154 | #define __PPC_RT(t) ___PPC_RT(__REG_##t) | 188 | #define __PPC_RT(t) ___PPC_RT(__REG_##t) |