blob: 0fb9d5d35c587cc28a02b9c0a58b48347dfd1dd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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
|