diff options
Diffstat (limited to 'arch/powerpc/include/asm/ppc-opcode.h')
-rw-r--r-- | arch/powerpc/include/asm/ppc-opcode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index 1255569387b6..384a96db794a 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc/include/asm/ppc-opcode.h | |||
@@ -56,6 +56,9 @@ | |||
56 | #define PPC_INST_TLBSRX_DOT 0x7c0006a5 | 56 | #define PPC_INST_TLBSRX_DOT 0x7c0006a5 |
57 | #define PPC_INST_XXLOR 0xf0000510 | 57 | #define PPC_INST_XXLOR 0xf0000510 |
58 | 58 | ||
59 | #define PPC_INST_NAP 0x4c000364 | ||
60 | #define PPC_INST_SLEEP 0x4c0003a4 | ||
61 | |||
59 | /* macros to insert fields into opcodes */ | 62 | /* macros to insert fields into opcodes */ |
60 | #define __PPC_RA(a) (((a) & 0x1f) << 16) | 63 | #define __PPC_RA(a) (((a) & 0x1f) << 16) |
61 | #define __PPC_RB(b) (((b) & 0x1f) << 11) | 64 | #define __PPC_RB(b) (((b) & 0x1f) << 11) |
@@ -126,4 +129,7 @@ | |||
126 | #define XXLOR(t, a, b) stringify_in_c(.long PPC_INST_XXLOR | \ | 129 | #define XXLOR(t, a, b) stringify_in_c(.long PPC_INST_XXLOR | \ |
127 | VSX_XX3((t), (a), (b))) | 130 | VSX_XX3((t), (a), (b))) |
128 | 131 | ||
132 | #define PPC_NAP stringify_in_c(.long PPC_INST_NAP) | ||
133 | #define PPC_SLEEP stringify_in_c(.long PPC_INST_SLEEP) | ||
134 | |||
129 | #endif /* _ASM_POWERPC_PPC_OPCODE_H */ | 135 | #endif /* _ASM_POWERPC_PPC_OPCODE_H */ |