diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2008-06-24 01:32:35 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-07-01 01:28:23 (GMT) |
commit | b7bcda631e87eb3466d0baa9885650ba7d7ed89d (patch) | |
tree | 3a04957c5f1b22e2d4405ccdaa980e6e513ef388 /arch/powerpc/kernel/cputable.c | |
parent | ae0dc73625f9b0e636ccd130e394c9b654a062fb (diff) | |
download | linux-b7bcda631e87eb3466d0baa9885650ba7d7ed89d.tar.xz |
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 'arch/powerpc/kernel/cputable.c')
-rw-r--r-- | arch/powerpc/kernel/cputable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index f8deb37..ba5b23f 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c @@ -17,6 +17,7 @@ #include <linux/module.h> #include <asm/oprofile_impl.h> +#include <asm/code-patching.h> #include <asm/cputable.h> #include <asm/prom.h> /* for PTRRELOC on ARCH=ppc */ @@ -1663,7 +1664,7 @@ void do_feature_fixups(unsigned long value, void *fixup_start, void *fixup_end) pend = ((unsigned int *)fcur) + (fcur->end_off / 4); for (p = pstart; p < pend; p++) { - *p = 0x60000000u; + *p = PPC_NOP_INSTR; asm volatile ("dcbst 0, %0" : : "r" (p)); } asm volatile ("sync" : : : "memory"); |