[INTERRUPTS] IRQs and the Programmable Interrupt Controller

This commit is contained in:
2016-11-09 21:16:29 +01:00
parent 8b2e58b6b1
commit b7c0de7ea5
3 changed files with 105 additions and 0 deletions

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__);