From 339224f7054b6945870d39adc205abff804979c0 Mon Sep 17 00:00:00 2001 From: Starnakin Date: Tue, 8 Oct 2024 12:22:35 +0200 Subject: [PATCH] fix: remap pic with right offset --- src/interrupt/idt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interrupt/idt.c b/src/interrupt/idt.c index effa040..a5aac00 100644 --- a/src/interrupt/idt.c +++ b/src/interrupt/idt.c @@ -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(); }