diff cos/kernel/klib.c @ 26:dcce92b1efbc

Added mm.c
author windel
date Tue, 27 Dec 2011 17:36:52 +0100
parents d8627924d40d
children 47b7df514243
line wrap: on
line diff
--- a/cos/kernel/klib.c	Tue Dec 27 13:31:38 2011 +0100
+++ b/cos/kernel/klib.c	Tue Dec 27 17:36:52 2011 +0100
@@ -8,6 +8,15 @@
    halt();
 }
 
+void reboot()
+{
+   while ( (inb(0x64) & 0x02) == 0x02)
+   {
+      ;
+   }
+   outb(0x64, 0xFE);
+}
+
 // IO port helpers:
 void outb(uint16_t port, uint8_t value)
 {