summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 c505bb0c2a..f094825a51 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);