mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user