From 87d41bdca44ab4bf2958b9979e7a48dc7868200b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 16 Oct 2018 11:05:29 +0200 Subject: [PATCH] If an interrupt comes from the slave PIC, both PICs need an EOI. --- Kernel/PIC.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Kernel/PIC.cpp b/Kernel/PIC.cpp index b458dd17b6b..868cf5a97b8 100644 --- a/Kernel/PIC.cpp +++ b/Kernel/PIC.cpp @@ -52,8 +52,7 @@ void eoi(BYTE irq) { if (irq & 8) IO::out8(PIC1_CTL, 0x20); - else - IO::out8(PIC0_CTL, 0x20); + IO::out8(PIC0_CTL, 0x20); } void initialize()