aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/include/asm/ppc-opcode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h
index 8752bc8e34a3..0c34e4803499 100644
--- a/arch/powerpc/include/asm/ppc-opcode.h
+++ b/arch/powerpc/include/asm/ppc-opcode.h
@@ -82,6 +82,8 @@
82#define __REGA0_R31 31 82#define __REGA0_R31 31
83 83
84/* sorted alphabetically */ 84/* sorted alphabetically */
85#define PPC_INST_BHRBE 0x7c00025c
86#define PPC_INST_CLRBHRB 0x7c00035c
85#define PPC_INST_DCBA 0x7c0005ec 87#define PPC_INST_DCBA 0x7c0005ec
86#define PPC_INST_DCBA_MASK 0xfc0007fe 88#define PPC_INST_DCBA_MASK 0xfc0007fe
87#define PPC_INST_DCBAL 0x7c2005ec 89#define PPC_INST_DCBAL 0x7c2005ec
@@ -297,6 +299,12 @@
297#define PPC_NAP stringify_in_c(.long PPC_INST_NAP) 299#define PPC_NAP stringify_in_c(.long PPC_INST_NAP)
298#define PPC_SLEEP stringify_in_c(.long PPC_INST_SLEEP) 300#define PPC_SLEEP stringify_in_c(.long PPC_INST_SLEEP)
299 301
302/* BHRB instructions */
303#define PPC_CLRBHRB stringify_in_c(.long PPC_INST_CLRBHRB)
304#define PPC_MFBHRBE(r, n) stringify_in_c(.long PPC_INST_BHRBE | \
305 __PPC_RT(r) | \
306 (((n) & 0x3ff) << 11))
307
300/* Transactional memory instructions */ 308/* Transactional memory instructions */
301#define TRECHKPT stringify_in_c(.long PPC_INST_TRECHKPT) 309#define TRECHKPT stringify_in_c(.long PPC_INST_TRECHKPT)
302#define TRECLAIM(r) stringify_in_c(.long PPC_INST_TRECLAIM \ 310#define TRECLAIM(r) stringify_in_c(.long PPC_INST_TRECLAIM \