Divide source code from other stuff

This commit is contained in:
Dr-Noob
2018-06-23 13:04:42 +02:00
parent 3ded41ce44
commit 9f55672aa2
17 changed files with 3 additions and 2 deletions

12
src/cpuid.c Normal file
View File

@@ -0,0 +1,12 @@
#include "cpuid.h"
void cpuid(unsigned int *eax, unsigned int *ebx,
unsigned int *ecx, unsigned int *edx)
{
asm volatile("cpuid"
: "=a" (*eax),
"=b" (*ebx),
"=c" (*ecx),
"=d" (*edx)
: "0" (*eax), "2" (*ecx));
}