summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/cpu_info.S.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cpu/x86/cpu_info.S.inc b/src/cpu/x86/cpu_info.S.inc
new file mode 100644
index 0000000000..62b47ca52a
--- /dev/null
+++ b/src/cpu/x86/cpu_info.S.inc
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+/* Push struct cpu_info */
+.macro push_cpu_info index=$0
+#if CONFIG(COOP_MULTITASKING)
+ push $0 /* *thread */
+#endif
+ push \index /* index */
+ push $0 /* *cpu */
+.endm