sparc32: fix cpuid_patch run-time patching
authorSam Ravnborg <sam@ravnborg.org>
Sun, 20 May 2012 15:24:20 +0000 (17:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 May 2012 20:33:35 +0000 (13:33 -0700)
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>
arch/sparc/kernel/setup_32.c

index 635df5c..d65b5a1 100644 (file)
@@ -229,6 +229,8 @@ static void __init per_cpu_patch(void)
                *(unsigned int *) (addr + 0) = insns[0];
                *(unsigned int *) (addr + 4) = insns[1];
                *(unsigned int *) (addr + 8) = insns[2];
+
+               p++;
        }
 #ifdef CONFIG_SMP
        local_ops->cache_all();