Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
f743e0c0e4e31f41230f2c8e27299e2e56259b77
/
.
/
src
/
soc
/
amd
/
common
/
block
/
cpu
/
cpu.c
blob: 7c1daf96f1e7f074d2fdb270b7dbd912ee14cd2e [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: GPL-2.0-only */
#include
<amdblocks/cpu.h>
#include
<cpu/cpu.h>
int
get_cpu_count
(
void
)
{
return
1
+
(
cpuid_ecx
(
0x80000008
)
&
0xff
);
}