Big refactoring. Move ascii managment to printer. Mix extended and standart cpuid functions in cpuid file. Old cpuid renamed to cpuid_asm. Store cpu name in cpuInfo struct

This commit is contained in:
Dr-Noob
2020-06-28 15:51:30 +02:00
parent 131d860de6
commit 941bf35d03
13 changed files with 990 additions and 1033 deletions

10
src/cpuid_asm.c Normal file
View File

@@ -0,0 +1,10 @@
#include "cpuid_asm.h"
void cpuid(uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) {
__asm volatile("cpuid"
: "=a" (*eax),
"=b" (*ebx),
"=c" (*ecx),
"=d" (*edx)
: "0" (*eax), "2" (*ecx));
}