summaryrefslogtreecommitdiffhomepage
path: root/src/loader/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/main.c')
-rw-r--r--src/loader/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/loader/main.c b/src/loader/main.c
index bf2604e..7c50e62 100644
--- a/src/loader/main.c
+++ b/src/loader/main.c
@@ -3,13 +3,14 @@
#include <def.h>
#include <dev.h>
#include <ide.h>
+#include <int.h>
#include <log.h>
#include <pci.h>
+#include <pic.h>
/**
* Entry
*/
-#include <pnc.h>
int start(void);
int start(void)
@@ -17,10 +18,15 @@ int start(void)
vga_clear();
serial_install();
+ pic_install();
+ idt_install();
+
pci_probe();
dev_print();
+ // Sleep and wait for interrupts
while (1)
- ;
+ __asm__ volatile("hlt");
+
return 0;
}