summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/c_start.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/c_start.S')
-rw-r--r--src/arch/x86/c_start.S9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/arch/x86/c_start.S b/src/arch/x86/c_start.S
index 34ed4e3665cc..b6375b1243c8 100644
--- a/src/arch/x86/c_start.S
+++ b/src/arch/x86/c_start.S
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <cpu/x86/cpu_info.S.inc>
#include <cpu/x86/post_code.h>
#include <arch/ram_segs.h>
@@ -76,13 +77,7 @@ _start:
movl $_estack, %esp
andl $(~(CONFIG_STACK_SIZE-1)), %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
/*
* Now we are finished. Memory is up, data is copied and