projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bootblock does not need a unique boot_cpu()
[coreboot.git]
/
src
/
cpu
/
x86
/
lapic
/
boot_cpu.c
diff --git
a/src/cpu/x86/lapic/boot_cpu.c
b/src/cpu/x86/lapic/boot_cpu.c
index d3a8f6e7a72428fdf89dc3a909eae67833b6f174..87418d0883ac076f064679e4436bd1bc8354bb29 100644
(file)
--- a/
src/cpu/x86/lapic/boot_cpu.c
+++ b/
src/cpu/x86/lapic/boot_cpu.c
@@
-1,6
+1,7
@@
#include <cpu/x86/msr.h>
-int boot_cpu(void)
+#if CONFIG_SMP
+static int boot_cpu(void)
{
int bsp;
msr_t msr;
@@
-8,3
+9,7
@@
int boot_cpu(void)
bsp = !!(msr.lo & (1 << 8));
return bsp;
}
+#else
+#define boot_cpu(x) 1
+#endif
+