aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/code-patching.h
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2008-06-23 21:32:35 -0400
committerPaul Mackerras <paulus@samba.org>2008-06-30 21:28:23 -0400
commitb7bcda631e87eb3466d0baa9885650ba7d7ed89d (patch)
tree3a04957c5f1b22e2d4405ccdaa980e6e513ef388 /include/asm-powerpc/code-patching.h
parentae0dc73625f9b0e636ccd130e394c9b654a062fb (diff)
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/code-patching.h')
-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 @@
12 12
13#include <asm/types.h> 13#include <asm/types.h>
14 14
15#define PPC_NOP_INSTR 0x60000000
16
15/* Flags for create_branch: 17/* Flags for create_branch:
16 * "b" == create_branch(addr, target, 0); 18 * "b" == create_branch(addr, target, 0);
17 * "ba" == create_branch(addr, target, BRANCH_ABSOLUTE); 19 * "ba" == create_branch(addr, target, BRANCH_ABSOLUTE);