Skip to content
Commit 583323b9 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

x86: fix cpu hotplug on 32bit

commit 3e970473

 ("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: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 8be1a6d6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment