]> Pileus Git - ~andy/linux/commitdiff
powerpc: Introduce new ___PPC_RA/B/S/T macros
authorMichael Neuling <mikey@neuling.org>
Mon, 25 Jun 2012 13:33:20 +0000 (13:33 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Jul 2012 09:18:22 +0000 (19:18 +1000)
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>
arch/powerpc/include/asm/ppc-opcode.h

index 2671a6d9e4a7076f6140beb05ab3827a968fc866..7ad07dfbfdf722a56b85708675604f27b519b701 100644 (file)
 #define PPC_INST_STBCIX                        0x7c0007aa
 
 /* macros to insert fields into opcodes */
+#define ___PPC_RA(a)   (((a) & 0x1f) << 16)
+#define ___PPC_RB(b)   (((b) & 0x1f) << 11)
+#define ___PPC_RS(s)   (((s) & 0x1f) << 21)
+#define ___PPC_RT(t)   ___PPC_RS(t)
 #define __PPC_RA(a)    (((a) & 0x1f) << 16)
 #define __PPC_RB(b)    (((b) & 0x1f) << 11)
 #define __PPC_RS(s)    (((s) & 0x1f) << 21)