diff options
Diffstat (limited to 'arch/x86/kernel/head_32.S')
-rw-r--r-- | arch/x86/kernel/head_32.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index 957a47aec64e..a013e7390ab5 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S | |||
@@ -266,6 +266,19 @@ num_subarch_entries = (. - subarch_entries) / 4 | |||
266 | jmp default_entry | 266 | jmp default_entry |
267 | #endif /* CONFIG_PARAVIRT */ | 267 | #endif /* CONFIG_PARAVIRT */ |
268 | 268 | ||
269 | #ifdef CONFIG_HOTPLUG_CPU | ||
270 | /* | ||
271 | * Boot CPU0 entry point. It's called from play_dead(). Everything has been set | ||
272 | * up already except stack. We just set up stack here. Then call | ||
273 | * start_secondary(). | ||
274 | */ | ||
275 | ENTRY(start_cpu0) | ||
276 | movl stack_start, %ecx | ||
277 | movl %ecx, %esp | ||
278 | jmp *(initial_code) | ||
279 | ENDPROC(start_cpu0) | ||
280 | #endif | ||
281 | |||
269 | /* | 282 | /* |
270 | * Non-boot CPU entry point; entered from trampoline.S | 283 | * Non-boot CPU entry point; entered from trampoline.S |
271 | * We can't lgdt here, because lgdt itself uses a data segment, but | 284 | * We can't lgdt here, because lgdt itself uses a data segment, but |