summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-01-26 14:41:54 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-11 21:55:30 +0100
commit5a5c886b8d7b191f6d2842af84e3dcfa3e3a6e39 (patch)
tree230d24c4898c9dbbde72e8940cd3af53095ef0a2 /src/include
parent972d5cf040aebbb8052767a4a88ad99a961ad2bf (diff)
downloadcoreboot-5a5c886b8d7b191f6d2842af84e3dcfa3e3a6e39.tar.xz
SMP: Add arch-agnostic boot_cpu()
We should not have x86 specific includes in lib/. Change-Id: I18fa9c8017d65c166ffd465038d71f35b30d6f3d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5156 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cpu/x86/lapic.h7
-rw-r--r--src/include/smp/node.h10
2 files changed, 11 insertions, 6 deletions
diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h
index 96b5891918..3d5046ee91 100644
--- a/src/include/cpu/x86/lapic.h
+++ b/src/include/cpu/x86/lapic.h
@@ -4,6 +4,7 @@
#include <cpu/x86/lapic_def.h>
#include <cpu/x86/msr.h>
#include <arch/hlt.h>
+#include <smp/node.h>
/* See if I need to initialize the local apic */
#if CONFIG_SMP || CONFIG_IOAPIC
@@ -153,10 +154,4 @@ int start_cpu(struct device *cpu);
#endif /* !__PRE_RAM__ */
-#if CONFIG_SMP
-int boot_cpu(void);
-#else
-#define boot_cpu(x) 1
-#endif
-
#endif /* CPU_X86_LAPIC_H */
diff --git a/src/include/smp/node.h b/src/include/smp/node.h
new file mode 100644
index 0000000000..4e45c46bd9
--- /dev/null
+++ b/src/include/smp/node.h
@@ -0,0 +1,10 @@
+#ifndef _SMP_NODE_H_
+#define _SMP_NODE_H_
+
+#if CONFIG_SMP
+int boot_cpu(void);
+#else
+#define boot_cpu(x) 1
+#endif
+
+#endif /* _SMP_NODE_H_ */