Add code to detect CPU microarchitecture (Intel only, at the moment)

This commit is contained in:
Dr-Noob
2020-08-31 13:18:25 +02:00
parent d998acdcdf
commit 5148962fa3
5 changed files with 234 additions and 2 deletions

10
src/uarch.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef __UARCH__
#define __UARCH__
#include <stdint.h>
struct uarch;
struct uarch* get_uarch_from_cpuid(uint32_t ef, uint32_t f, uint32_t em, uint32_t m, int s);
#endif