blob: 87418d0883ac076f064679e4436bd1bc8354bb29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <cpu/x86/msr.h>
#if CONFIG_SMP
static 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
|