2021-07-22 21:14:58 +00:00
|
|
|
#include <cpuid.h> // NOTE: Only available in GCC
|
2021-11-02 20:03:11 +00:00
|
|
|
// NOT currently usefull!
|
|
|
|
/* static int get_model(){
|
2021-07-22 21:14:58 +00:00
|
|
|
int ebx, unused;
|
|
|
|
__cpuid(0, unused, ebx, unused, unused);
|
|
|
|
return ebx;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum {
|
|
|
|
CPUID_FEAT_EDX_APIC = 1 << 9
|
|
|
|
};
|
|
|
|
static int check_apic (){
|
|
|
|
unsigned int eax, unused, edx;
|
|
|
|
__get_cpuid(1, &eax, &unused, &unused, &edx);
|
|
|
|
return edx & CPUID_FEAT_EDX_APIC;
|
|
|
|
}
|
2021-11-02 20:03:11 +00:00
|
|
|
*/
|