[v1.03] Fix compilation errors in Windows

This commit is contained in:
Dr-Noob
2023-01-05 11:42:47 +01:00
parent 49941b1717
commit 22a80d817d
3 changed files with 13 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ bool bind_to_cpu(int cpu_id) {
}
#endif
#ifdef __linux__
int get_total_cores_module(int total_cores, int module) {
int total_modules = 2;
int32_t current_module_idx = -1;
@@ -154,6 +155,7 @@ int get_total_cores_module(int total_cores, int module) {
//printf("Module %d has %d cores\n", module, cores_in_module);
return cores_in_module;
}
#endif
bool fill_topo_masks_apic(struct topology* topo) {
uint32_t eax = 0x00000001;