mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
- Changes to allow more code to be compiled both ways - Working SMP support git-svn-id: svn://svn.coreboot.org/coreboot/trunk@987 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
12 lines
194 B
C
12 lines
194 B
C
#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;
|
|
}
|