add PIT
This commit is contained in:
+3
-1
@@ -5,6 +5,7 @@
|
||||
#include "../include/disk.h"
|
||||
#include "../include/string.h"
|
||||
#include "../include/pic.h"
|
||||
#include "../include/pit.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -14,8 +15,9 @@ void kmain()
|
||||
printf("KatauOS booting up\n");
|
||||
isr_install();
|
||||
pic_remap(0x20, 0x28);
|
||||
pit_init();
|
||||
//only enable keyboard IRQs
|
||||
outb(0x21,0xfd);
|
||||
outb(0x21,0xfc);
|
||||
outb(0xa1,0xff);
|
||||
|
||||
printf("Kernel init sequence completed\n");
|
||||
|
||||
Reference in New Issue
Block a user