f7c55148c0
Change-Id: I9004f34ba0c13b4489b26ac8c1476d00a6c6d01d Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/6207 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
13 lines
178 B
C
13 lines
178 B
C
#include <smp/node.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;
|
|
}
|
|
#endif
|