Implement vfs layer
[thunix.git] / kernel / reboot.c
blob762bcd3beb72b46c969179a21124336e68d9d815
1 /**
2 * thunix/kernel/reboot.c
4 * reboot the system
6 */
8 #include <thunix.h>
9 #include <asm/io.h>
12 #define KEYBOARD_REG_STATUS 0x64
13 #define KEYBOARD_COMMAND_REBOOT 0xfe
16 void reboot()
18 outb_p(KEYBOARD_COMMAND_REBOOT, KEYBOARD_REG_STATUS);
20 /* if fails, then print error message */
21 /* hope it never happens */
22 panic("Sorry, reboot doesn't supported...");