mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 09:02:46 +00:00
Initial commit: SUB-OS 64-Bit Production Monolithic Operating System with LazyBox userland suite
This commit is contained in:
commit
cd9c786d14
88 files changed
+7132
No files matched your search
@@ -0,0 +1,30 @@
|
||||
#ifndef _ARCH_X86_64_CPUID_H
|
||||
#define _ARCH_X86_64_CPUID_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct {
|
||||
char vendor[13];
|
||||
char model[49];
|
||||
uint32_t family;
|
||||
uint32_t model_id;
|
||||
uint32_t stepping;
|
||||
bool has_fpu;
|
||||
bool has_tsc;
|
||||
bool has_msr;
|
||||
bool has_pae;
|
||||
bool has_apic;
|
||||
bool has_sse;
|
||||
bool has_sse2;
|
||||
bool has_sse3;
|
||||
bool has_sse4_1;
|
||||
bool has_sse4_2;
|
||||
bool has_avx;
|
||||
bool has_rdrand;
|
||||
} cpu_info_t;
|
||||
|
||||
void cpuid_detect(cpu_info_t* info);
|
||||
const cpu_info_t* cpuid_get_info(void);
|
||||
|
||||
#endif // _ARCH_X86_64_CPUID_H
|
||||
Reference in new issue
Block a user