summaryrefslogtreecommitdiffhomepage
path: root/src/loader/main.c
diff options
context:
space:
mode:
authorMarvin Borner2021-07-05 18:28:40 +0200
committerMarvin Borner2021-07-05 18:28:40 +0200
commitd1476974cd612412eefc40c6dc72ba66191136fd (patch)
tree74fa7b96337bed895aff5fa268131fc9e3961f97 /src/loader/main.c
parent4e5b18fb3284705904a2f15f790b8c15b5767fd0 (diff)
Added interrupt handling
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;
}