Add an option to keep the ROM cached after romstage
[coreboot.git] / src / cpu / x86 / lapic / boot_cpu.c
1 #include <cpu/x86/lapic.h>
2 #include <cpu/x86/msr.h>
3
4 #if CONFIG_SMP
5 int boot_cpu(void)
6 {
7         int bsp;
8         msr_t msr;
9         msr = rdmsr(0x1b);
10         bsp = !!(msr.lo & (1 << 8));
11         return bsp;
12 }
13 #else
14 #define boot_cpu(x) 1
15 #endif
16