Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
44807acaefc71cd4985779e742e6791cb9daf65d
/
.
/
src
/
soc
/
amd
/
common
/
block
/
cpu
/
cpu.c
blob: bece89bc726438f51c0775ced963920cbd9023af [
file
] [
log
] [
blame
]
Arthur Heymans
44807ac
2022-09-13 12:43:37 +0200
[
diff
] [
blame^
]
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include
<arch/cpu.h>
4
#include
<amdblocks/cpu.h>
5
6
int
get_cpu_count
(
void
)
7
{
8
return
1
+
(
cpuid_ecx
(
0x80000008
)
&
0xff
);
9
}