Fix keyboard interrupt printing

This commit is contained in:
Eryn Wells 2016-03-19 04:04:59 -04:00
parent 100da19d28
commit 3a40e246c2

View file

@ -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);
}