diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-20 11:24:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-20 16:33:35 -0400 |
commit | 9cd5f82246b724aae402959bffe0441b45a01a1c (patch) | |
tree | a95e6f397eb51adb45c61e583ab8dbacb00f711c /arch/sparc | |
parent | 857814990466cbdff5746f6116b2556dcc4fd923 (diff) |
sparc32: fix cpuid_patch run-time patching
We hang forever when trying to do run-time patching of instructions
identified by the cpuid_patch section
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/setup_32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c index 635df5c9e601..d65b5a1c2209 100644 --- a/arch/sparc/kernel/setup_32.c +++ b/arch/sparc/kernel/setup_32.c | |||
@@ -229,6 +229,8 @@ static void __init per_cpu_patch(void) | |||
229 | *(unsigned int *) (addr + 0) = insns[0]; | 229 | *(unsigned int *) (addr + 0) = insns[0]; |
230 | *(unsigned int *) (addr + 4) = insns[1]; | 230 | *(unsigned int *) (addr + 4) = insns[1]; |
231 | *(unsigned int *) (addr + 8) = insns[2]; | 231 | *(unsigned int *) (addr + 8) = insns[2]; |
232 | |||
233 | p++; | ||
232 | } | 234 | } |
233 | #ifdef CONFIG_SMP | 235 | #ifdef CONFIG_SMP |
234 | local_ops->cache_all(); | 236 | local_ops->cache_all(); |