]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix cpu hotplug on 32bit
authorThomas Gleixner <tglx@linutronix.de>
Sun, 27 Jul 2008 19:43:11 +0000 (21:43 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 27 Jul 2008 19:43:11 +0000 (21:43 +0200)
commit1aad55565205cd74cc93ab7c6e7441d7fbfe509c
tree33a8a505507f6b591c8181b5762ad20a063042fa
parent449413fce8a168d211a6a376c1ad0f0177fdd369
x86: fix cpu hotplug on 32bit

commit 1ebb854f2bd82514c0ef0e229f75ad265df5ab71 ("x86: boot secondary
cpus through initial_code") causes the kernel to crash when a CPU is
brought online after the read only sections have been write
protected. The write to initial_code in do_boot_cpu() fails.

Move inital_code to .cpuinit.data section.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/head_32.S