summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2008-06-24 11:32:35 +1000
committerPaul Mackerras <paulus@samba.org>2008-07-01 11:28:23 +1000
commitb7bcda631e87eb3466d0baa9885650ba7d7ed89d (patch)
tree3a04957c5f1b22e2d4405ccdaa980e6e513ef388 /include/asm-powerpc
parentae0dc73625f9b0e636ccd130e394c9b654a062fb (diff)
downloadblackbird-op-linux-b7bcda631e87eb3466d0baa9885650ba7d7ed89d.tar.gz
blackbird-op-linux-b7bcda631e87eb3466d0baa9885650ba7d7ed89d.zip
powerpc: Add PPC_NOP_INSTR, a hash define for the preferred nop instruction
A bunch of code has hard-coded the value for a "nop" instruction, it would be nice to have a #define for it. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Acked-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/code-patching.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/code-patching.h b/include/asm-powerpc/code-patching.h
index 40ad46b1dd9d..ef3a5d156dba 100644
--- a/include/asm-powerpc/code-patching.h
+++ b/include/asm-powerpc/code-patching.h
@@ -12,6 +12,8 @@
#include <asm/types.h>
+#define PPC_NOP_INSTR 0x60000000
+
/* Flags for create_branch:
* "b" == create_branch(addr, target, 0);
* "ba" == create_branch(addr, target, BRANCH_ABSOLUTE);
OpenPOWER on IntegriCloud