aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/head_32.S
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@intel.com>2012-05-08 14:22:28 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2012-05-08 14:41:51 -0400
commit48927bbb97c7d4cf343c05827ab9ac30c60678cb (patch)
tree715b2efa48c5678ada3d02a73f87e1538fe8c9b2 /arch/x86/kernel/head_32.S
parent5a8c9aebe04a78b069828d364798d5f24c5a42bd (diff)
x86, realmode: Move SMP trampoline to unified realmode code
Migrated SMP trampoline code to the real mode blob. SMP trampoline code is not yet removed from .x86_trampoline because it is needed by the wakeup code. [ hpa: always enable compiling startup_32_smp in head_32.S... it is only a few instructions which go into .init on UP builds, and it makes the rest of the code less #ifdef ugly. ] Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com> Link: http://lkml.kernel.org/r/1336501366-28617-6-git-send-email-jarkko.sakkinen@intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/head_32.S')
-rw-r--r--arch/x86/kernel/head_32.S5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
index ce0be7cd085e..a3c2b4ffebc6 100644
--- a/arch/x86/kernel/head_32.S
+++ b/arch/x86/kernel/head_32.S
@@ -273,10 +273,7 @@ num_subarch_entries = (. - subarch_entries) / 4
273 * If cpu hotplug is not supported then this code can go in init section 273 * If cpu hotplug is not supported then this code can go in init section
274 * which will be freed later 274 * which will be freed later
275 */ 275 */
276
277__CPUINIT 276__CPUINIT
278
279#ifdef CONFIG_SMP
280ENTRY(startup_32_smp) 277ENTRY(startup_32_smp)
281 cld 278 cld
282 movl $(__BOOT_DS),%eax 279 movl $(__BOOT_DS),%eax
@@ -287,7 +284,7 @@ ENTRY(startup_32_smp)
287 movl pa(stack_start),%ecx 284 movl pa(stack_start),%ecx
288 movl %eax,%ss 285 movl %eax,%ss
289 leal -__PAGE_OFFSET(%ecx),%esp 286 leal -__PAGE_OFFSET(%ecx),%esp
290#endif /* CONFIG_SMP */ 287
291default_entry: 288default_entry:
292 289
293/* 290/*