From 09cbb8874bfd3b640c6edc9fac6ebde359f944d5 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Tue, 6 Apr 2021 20:37:49 +0200 Subject: [PATCH] [v0.96] Fix previous mistake: use level 0xB to check if the level is supported or not, according to Intel docs --- src/x86/apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x86/apic.c b/src/x86/apic.c index a1b58ca..9df5432 100644 --- a/src/x86/apic.c +++ b/src/x86/apic.c @@ -321,7 +321,7 @@ bool get_topology_from_apic(struct cpuInfo* cpu, struct topology* topo) { bool x2apic_id; if(cpu->maxLevels >= 0x0000000B) { - uint32_t eax = 0; + uint32_t eax = 0x0000000B; uint32_t ebx = 0; uint32_t ecx = 0; uint32_t edx = 0;