aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/cputable.c
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 /arch/powerpc/kernel/cputable.c
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 'arch/powerpc/kernel/cputable.c')
-rw-r--r--arch/powerpc/kernel/cputable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c
index f8deb3761de4..ba5b23f54764 100644
--- a/arch/powerpc/kernel/cputable.c
+++ b/arch/powerpc/kernel/cputable.c
@@ -17,6 +17,7 @@
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include <asm/oprofile_impl.h> 19#include <asm/oprofile_impl.h>
20#include <asm/code-patching.h>
20#include <asm/cputable.h> 21#include <asm/cputable.h>
21#include <asm/prom.h> /* for PTRRELOC on ARCH=ppc */ 22#include <asm/prom.h> /* for PTRRELOC on ARCH=ppc */
22 23
@@ -1663,7 +1664,7 @@ void do_feature_fixups(unsigned long value, void *fixup_start, void *fixup_end)
1663 pend = ((unsigned int *)fcur) + (fcur->end_off / 4); 1664 pend = ((unsigned int *)fcur) + (fcur->end_off / 4);
1664 1665
1665 for (p = pstart; p < pend; p++) { 1666 for (p = pstart; p < pend; p++) {
1666 *p = 0x60000000u; 1667 *p = PPC_NOP_INSTR;
1667 asm volatile ("dcbst 0, %0" : : "r" (p)); 1668 asm volatile ("dcbst 0, %0" : : "r" (p));
1668 } 1669 }
1669 asm volatile ("sync" : : : "memory"); 1670 asm volatile ("sync" : : : "memory");