From a35482694f82bbb00ec68faa391a4cc36b27deeb Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 22 Feb 2023 01:22:10 +0200 Subject: [PATCH] Fixed keyboard interrupt --- Core/Interrupts/IntManager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core/Interrupts/IntManager.cpp b/Core/Interrupts/IntManager.cpp index 1052ae7..ff3f6fc 100644 --- a/Core/Interrupts/IntManager.cpp +++ b/Core/Interrupts/IntManager.cpp @@ -130,7 +130,14 @@ namespace Interrupts if (likely(handler != (Handler *)HASHMAP_ERROR)) handler->OnInterruptReceived(Frame); else + { error("IRQ%ld is unhandled on CPU %d.", Frame->InterruptNumber - 32, Core); + if (Frame->InterruptNumber == CPU::x64::IRQ1) + { + uint8_t scancode = inb(0x60); + warn("IRQ1 is the keyboard interrupt. Scancode: %#x", scancode); + } + } if (likely(apic[Core])) {