summaryrefslogtreecommitdiff
path: root/src/cpu/p6/boot_cpu.c
blob: 803eecdd5d96b1557123b72c91acd0a6b5323e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <cpu/p6/msr.h>

int boot_cpu(void)
{
	volatile unsigned long *local_apic;
	unsigned long apic_id;
	int bsp;
	msr_t msr;
	msr = rdmsr(0x1b);
	bsp = !!(msr.lo & (1 << 8));
	return bsp;
}