aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2012-06-25 09:33:08 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-07-10 05:17:50 -0400
commit82fff310f18e274a8e3f0aff5669928ab45c8dab (patch)
treeed45a079cf10f9a37aaebe3d510a039533ed33fd /arch
parent50bba07d6a16ce4a3b4f6abb44bfd3645c046ef6 (diff)
powerpc: Add defines for R0-R31
We are going to use these later and convert r0 to %r0 etc. 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.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h
index d81f99430fe7..015a3289e222 100644
--- a/arch/powerpc/include/asm/ppc-opcode.h
+++ b/arch/powerpc/include/asm/ppc-opcode.h
@@ -15,6 +15,39 @@
15#include <linux/stringify.h> 15#include <linux/stringify.h>
16#include <asm/asm-compat.h> 16#include <asm/asm-compat.h>
17 17
18#define R0 0
19#define R1 1
20#define R2 2
21#define R3 3
22#define R4 4
23#define R5 5
24#define R6 6
25#define R7 7
26#define R8 8
27#define R9 9
28#define R10 10
29#define R11 11
30#define R12 12
31#define R13 13
32#define R14 14
33#define R15 15
34#define R16 16
35#define R17 17
36#define R18 18
37#define R19 19
38#define R20 20
39#define R21 21
40#define R22 22
41#define R23 23
42#define R24 24
43#define R25 25
44#define R26 26
45#define R27 27
46#define R28 28
47#define R29 29
48#define R30 30
49#define R31 31
50
18/* sorted alphabetically */ 51/* sorted alphabetically */
19#define PPC_INST_DCBA 0x7c0005ec 52#define PPC_INST_DCBA 0x7c0005ec
20#define PPC_INST_DCBA_MASK 0xfc0007fe 53#define PPC_INST_DCBA_MASK 0xfc0007fe