From 3a40e246c2b9d4dcf79669cb00b48b8243b54508 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 19 Mar 2016 04:04:59 -0400 Subject: [PATCH] Fix keyboard interrupt printing --- src/Interrupts.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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); }