From ba94035200d63b1c2568ffbba425bafcd9aea93a Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 29 Apr 2019 23:52:53 +0200 Subject: [PATCH] minor enhancements --- kaleid/kernel/cpu/idt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kaleid/kernel/cpu/idt.c b/kaleid/kernel/cpu/idt.c index 4f3ca1e..37a7548 100644 --- a/kaleid/kernel/cpu/idt.c +++ b/kaleid/kernel/cpu/idt.c @@ -155,8 +155,8 @@ static void EnablePIC(void) IoWriteByteOnPort(0xa0, 0x11); // Set ICW2 (IRQ base offsets) - IoWriteByteOnPort(0x21, 0x20); //0x20 is the first free interrupt - IoWriteByteOnPort(0xa1, 0x28); + IoWriteByteOnPort(0x21, 0x20); //0x20 is the first free interrupt for IRQ0 + IoWriteByteOnPort(0xa1, 0x28); // PIC2 is offseted to 0x28 // Set ICW3 IoWriteByteOnPort(0x21, 0x4);