From c7afd460166fc95f7b9cbd5d5a1d1df64622c007 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 21 Nov 2024 20:40:29 +0200 Subject: [PATCH] Kernel: Don't log spurious interrupts Some PCs seem to be spamming a lot of int 7 --- kernel/kernel/IDT.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/kernel/IDT.cpp b/kernel/kernel/IDT.cpp index 0230d806..f6226750 100644 --- a/kernel/kernel/IDT.cpp +++ b/kernel/kernel/IDT.cpp @@ -381,9 +381,7 @@ namespace Kernel Thread::current().save_sse(); - if (!InterruptController::get().is_in_service(irq)) - dprintln("spurious irq 0x{2H}", irq); - else + if (InterruptController::get().is_in_service(irq)) { InterruptController::get().eoi(irq); if (auto* handler = s_interruptables[irq])