projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8578149
)
sparc32: fix cpuid_patch run-time patching
author
Sam Ravnborg
<sam@ravnborg.org>
Sun, 20 May 2012 15:24:20 +0000
(17:24 +0200)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/kernel/setup_32.c
b/arch/sparc/kernel/setup_32.c
index 635df5c9e6014d8a2d2dae9fdf214e8bcee8706c..d65b5a1c220917fb50d039cf5d264507dd60f29b 100644
(file)
--- 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)
*(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();