[v1.04][X86] Fix bug in AMD CPUs (#212)

This commit is contained in:
Dr-Noob
2023-12-24 23:03:20 +00:00
parent ce6e6f9cd8
commit 0a048717bf

View File

@@ -194,7 +194,7 @@ void init_topology_struct(struct topology* topo, struct cache* cach) {
topo->sockets = 0;
#ifdef ARCH_X86
topo->smt_available = 0;
topo->apic = emalloc(sizeof(struct apic));
topo->apic = ecalloc(1, sizeof(struct apic));
#endif
#endif
}