fix: remap pic with right offset

This commit is contained in:
Starnakin 2024-10-08 12:22:35 +02:00
parent d348ac109e
commit 339224f705

View File

@ -38,7 +38,8 @@ void init_idt(void)
idt_set_descriptor(i, isr_stub_table[i], 0x8E);
__asm__ volatile("lidt %0" : : "m"(idtr));
__asm__ volatile("sti");
pic_remap(32, 32);
// https://wiki.osdev.org/8259_PIC#Programming_with_the_8259_PIC
pic_remap(0x20, 0x28);
pic_disable();
enable_apic();
}