2011-11-03 00:12:34 +01:00
|
|
|
#include <cpu/x86/lapic.h>
|
2004-10-14 21:29:29 +02:00
|
|
|
#include <cpu/x86/msr.h>
|
|
|
|
|
2011-11-22 18:44:45 +01:00
|
|
|
#if CONFIG_SMP
|
2011-11-03 00:12:34 +01:00
|
|
|
int boot_cpu(void)
|
2004-10-14 21:29:29 +02:00
|
|
|
{
|
|
|
|
int bsp;
|
|
|
|
msr_t msr;
|
|
|
|
msr = rdmsr(0x1b);
|
|
|
|
bsp = !!(msr.lo & (1 << 8));
|
|
|
|
return bsp;
|
|
|
|
}
|
2011-11-22 18:44:45 +01:00
|
|
|
#endif
|
|
|
|
|