Updated pic init
This commit is contained in:
@@ -16,18 +16,16 @@ union cpu_name {
|
||||
};
|
||||
};
|
||||
|
||||
static bool has_apic() {
|
||||
uint32_t eax, unused, edx;
|
||||
__get_cpuid(CPUID_FEATURE_FLAGS, &eax, &unused, &unused, &edx);
|
||||
return edx & CPUID_FEAT_EDX_APIC;
|
||||
}
|
||||
|
||||
|
||||
void cpuidx_print_info() {
|
||||
union cpu_name name;
|
||||
__get_cpuid(0, NULL, &name.parts[0], &name.parts[2], &name.parts[1]);
|
||||
__get_cpuid(CPUID_VENDOR_ID, NULL, &name.parts[0], &name.parts[2], &name.parts[1]);
|
||||
name.end = 0;
|
||||
printf("CPU: %s\n", &name.name);
|
||||
|
||||
cpu_features_ecx features_ecx;
|
||||
cpu_features_edx features_edx;
|
||||
__get_cpuid(1, NULL, NULL, (uint32_t *) &features_ecx, (uint32_t *) &features_edx);
|
||||
|
||||
printf("");
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user