summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/smbios.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-02-20 17:46:41 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-02-21 20:14:43 +0000
commit73e9ac66ad8ff8f4b15389b5685f808ac20e204c (patch)
treefab192040ae8d66fa0cc408ab6c4331631835c06 /src/arch/x86/smbios.c
parent4c7b965c6ce228f7ac8dfaeb7b568e5bfe0cbc29 (diff)
downloadcoreboot-73e9ac66ad8ff8f4b15389b5685f808ac20e204c.tar.gz
coreboot-73e9ac66ad8ff8f4b15389b5685f808ac20e204c.tar.bz2
coreboot-73e9ac66ad8ff8f4b15389b5685f808ac20e204c.zip
arch/x86/smbios: use cpu_cpuid_extended_level instead of open coding it
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ice15f0ce591104a2ace186f9049748219c2bc097 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73141 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/arch/x86/smbios.c')
-rw-r--r--src/arch/x86/smbios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index c505bb0c2ad3..f094825a51f1 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -120,8 +120,8 @@ static int smbios_processor_name(u8 *start)
const char *str = "Unknown Processor Name";
if (cpu_have_cpuid()) {
int i;
- struct cpuid_result res = cpuid(0x80000000);
- if (res.eax >= 0x80000004) {
+ struct cpuid_result res;
+ if (cpu_cpuid_extended_level() >= 0x80000004) {
int j = 0;
for (i = 0; i < 3; i++) {
res = cpuid(0x80000002 + i);