[INTERRUPTS] IRQs and the Programmable Interrupt Controller

This commit is contained in:
thomas committed 2017-03-27 23:09:08 +02:00
1 parent 8b2e58b6b1
commit b7c0de7ea5
3 files changed
+105

No files matched your search

+3
View File
@@ -29,6 +29,7 @@ int kmain(uint64_t multiboot_magic, void *multiboot_data)
pmm_init();
gdt_init();
scheduler_init();
pic_init();
process_t *p1 = process_spawn(0);
process_t *p2 = process_spawn(p1);
@@ -51,6 +52,8 @@ int kmain(uint64_t multiboot_magic, void *multiboot_data)
scheduler_insert(t2);
scheduler_insert(t3);
IRQ_UNMASK(IRQ_TIMER);
asm("sti");
debug_info("BOOT COMPLETE\n");
schedule();
debug_error("PANIC - This line should be unreachable (%s:%d)\n", __FILE__, __LINE__);