repo.or.cz
/
coreboot2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git]
/
src
/
cpu
/
x86
/
lapic
/
boot_cpu.c
blob
fd708704daec9ad5ebcb6bd76f4b43f2ec5b658e
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <cpu/x86/lapic_def.h>
4
#include <cpu/x86/msr.h>
5
#include <smp/node.h>
6
7
#if CONFIG(SMP)
8
int
boot_cpu
(
void
)
9
{
10
int
bsp
;
11
msr_t msr
;
12
msr
=
rdmsr
(
LAPIC_BASE_MSR
);
13
bsp
= !!(
msr
.
lo
& (
1
<<
8
));
14
return
bsp
;
15
}
16
#endif