- Add new cvs code to cvs
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1657 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
10
src/cpu/x86/lapic/boot_cpu.c
Normal file
10
src/cpu/x86/lapic/boot_cpu.c
Normal file
@ -0,0 +1,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;
|
||||
}
|
Reference in New Issue
Block a user