From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman From: Michael Neuling Date: Fri, 08 Jun 2012 21:36:05 +1000 Subject: [PATCH 12/15] powerpc: introduce new ___PPC_RA/B/S/T macros In-Reply-To: <1339155365.316308.981577666228.qpush@ale> Message-Id: <20120608113605.9DCC7D43B31@localhost.localdomain> Cc: mikey@neuling.org, linuxppc-dev@ozlabs.org, Anton Blanchard , Olof Johannsson List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , These are currently the same as __PPC_RA/B/S/T but we'll wrap them soon. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 4 ++++ 1 file changed, 4 insertions(+) Index: clone3/arch/powerpc/include/asm/ppc-opcode.h =================================================================== --- clone3.orig/arch/powerpc/include/asm/ppc-opcode.h +++ clone3/arch/powerpc/include/asm/ppc-opcode.h @@ -111,6 +111,10 @@ #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)