apic: fix timer and keyboard handling

This commit is contained in:
2025-08-30 20:57:44 +03:00
parent fb8dd43dd3
commit 649c4c56a4
4 changed files with 79 additions and 10 deletions
+5
View File
@@ -67,7 +67,12 @@ void kmain(unsigned int magic, unsigned int info)
else
{
pic_disable();
enable_symmetric_io_mode();
enable_apic();
ioapic_init();
printf("IOAPIC init done\n");
ioapic_redirect(2, 32);//timer
ioapic_redirect(1, 33);//keyboard
}
printf("done fucking with pages and memory map!\n");