Fix compilation in Windows and add support for bind to specific cores. Separate APIC code in other file

This commit is contained in:
Dr-Noob
2020-07-06 01:16:59 +02:00
parent b457c86100
commit 08f79bb914
6 changed files with 289 additions and 251 deletions

17
src/apic.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef __APIC__
#define __APIC__
#include <stdbool.h>
#include "cpuid.h"
struct apic {
uint32_t pkg_mask;
uint32_t pkg_mask_shift;
uint32_t core_mask;
uint32_t smt_mask_width;
uint32_t smt_mask;
};
bool get_topology_from_apic(uint32_t cpuid_max_levels, struct topology** topo);
#endif