diff --git a/src/Interrupts.cc b/src/Interrupts.cc index 607e5b3..a16656d 100644 --- a/src/Interrupts.cc +++ b/src/Interrupts.cc @@ -154,12 +154,11 @@ InterruptHandler::doKeyboardInterrupt() { // Quick 'n dirty read the scancode. unsigned int c = 0; - do { - c = kernel::io::inb(0x60); - } while (c == 0); - auto& console = kernel::Console::systemConsole(); - console.printFormat("Key! (scancode 0x%02X)\n", c); + do { + c = kernel::io::inw(0x60); + console.printFormat("Key! (scancode 0x%02X)\n", c); + } while (c == 0); }