summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/assembly_entry.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/assembly_entry.S')
-rw-r--r--src/arch/x86/assembly_entry.S9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/arch/x86/assembly_entry.S b/src/arch/x86/assembly_entry.S
index b0e15dc7003b..4e7baf4427cd 100644
--- a/src/arch/x86/assembly_entry.S
+++ b/src/arch/x86/assembly_entry.S
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <cpu/x86/cpu_info.S.inc>
#include <rules.h>
/*
@@ -35,13 +36,7 @@ _start:
/* reset stack pointer to CAR/EARLYRAM stack */
mov $_STACK_TOP, %esp
-#if CONFIG(COOP_MULTITASKING)
- /* Push the thread pointer. */
- push $0
-#endif
- /* Push the CPU index and struct CPU */
- push $0
- push $0
+ push_cpu_info
/* clear .bss section as it is not shared */
cld