fix: remap pic with right offset
This commit is contained in:
parent
d348ac109e
commit
339224f705
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user