summaryrefslogtreecommitdiff
path: root/kernel/x86.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-09-03 00:15:51 +0200
committerMichal Idziorek <m.i@gmx.at>2014-09-03 00:15:51 +0200
commitaad04a2208fbde8db2c1a81d6057c1ac4edb390e (patch)
tree87f3b47c5f85d6c7c5921e799571b42906d0eb0a /kernel/x86.c
parent1a3a3a20773a5664c653a8aebcd10d288962285b (diff)
ACPI support !
Diffstat (limited to 'kernel/x86.c')
-rw-r--r--kernel/x86.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/x86.c b/kernel/x86.c
index 5e44424..8473bcc 100644
--- a/kernel/x86.c
+++ b/kernel/x86.c
@@ -1,5 +1,14 @@
#include "x86.h"
+//TODO!!!
+void sleep(int i)
+{
+ i*=1000000;
+ for(;i>0;i--)
+ {
+
+ }
+}
// get control registers (cr0-cr4)
uint32_t x86_get_cr0()