summaryrefslogtreecommitdiff
path: root/src/cpu/x86/lapic/boot_cpu.c
blob: d3a8f6e7a72428fdf89dc3a909eae67833b6f174 (plain)
1
2
3
4
5
6
7
8
9
10
#include <cpu/x86/msr.h>

int boot_cpu(void)
{
	int bsp;
	msr_t msr;
	msr = rdmsr(0x1b);
	bsp = !!(msr.lo & (1 << 8));
	return bsp;
}