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 bca73e137ef38b03988204259f3330f275e74a2f..87418d0883ac076f064679e4436bd1bc8354bb29 100644
(file)
--- a/
src/cpu/x86/lapic/boot_cpu.c
+++ b/
src/cpu/x86/lapic/boot_cpu.c
@@
-1,5
+1,6
@@
#include <cpu/x86/msr.h>
+#if CONFIG_SMP
static int boot_cpu(void)
{
int bsp;
@@
-8,3
+9,7
@@
static int boot_cpu(void)
bsp = !!(msr.lo & (1 << 8));
return bsp;
}
+#else
+#define boot_cpu(x) 1
+#endif
+