[v0.96] Fix previous mistake: use level 0xB to check if the level is supported or not, according to Intel docs

This commit is contained in:
Dr-Noob
2021-04-06 20:37:49 +02:00
parent fe95ca3e10
commit 09cbb8874b

View File

@@ -321,7 +321,7 @@ bool get_topology_from_apic(struct cpuInfo* cpu, struct topology* topo) {
bool x2apic_id; bool x2apic_id;
if(cpu->maxLevels >= 0x0000000B) { if(cpu->maxLevels >= 0x0000000B) {
uint32_t eax = 0; uint32_t eax = 0x0000000B;
uint32_t ebx = 0; uint32_t ebx = 0;
uint32_t ecx = 0; uint32_t ecx = 0;
uint32_t edx = 0; uint32_t edx = 0;