00093a81d3
Change-Id: I05f1cbd33f0cb7d80ec90c636d1607774b4a74ef Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/739 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
16 lines
212 B
C
16 lines
212 B
C
#include <cpu/x86/lapic.h>
|
|
#include <cpu/x86/msr.h>
|
|
|
|
#if CONFIG_SMP
|
|
int boot_cpu(void)
|
|
{
|
|
int bsp;
|
|
msr_t msr;
|
|
msr = rdmsr(0x1b);
|
|
bsp = !!(msr.lo & (1 << 8));
|
|
return bsp;
|
|
}
|
|
#else
|
|
#define boot_cpu(x) 1
|
|
#endif
|
|
|