Fix keyboard interrupt printing
This commit is contained in:
parent
100da19d28
commit
3a40e246c2
1 changed files with 4 additions and 5 deletions
|
@ -154,12 +154,11 @@ InterruptHandler::doKeyboardInterrupt()
|
||||||
{
|
{
|
||||||
// Quick 'n dirty read the scancode.
|
// Quick 'n dirty read the scancode.
|
||||||
unsigned int c = 0;
|
unsigned int c = 0;
|
||||||
do {
|
|
||||||
c = kernel::io::inb(0x60);
|
|
||||||
} while (c == 0);
|
|
||||||
|
|
||||||
auto& console = kernel::Console::systemConsole();
|
auto& console = kernel::Console::systemConsole();
|
||||||
|
do {
|
||||||
|
c = kernel::io::inw(0x60);
|
||||||
console.printFormat("Key! (scancode 0x%02X)\n", c);
|
console.printFormat("Key! (scancode 0x%02X)\n", c);
|
||||||
|
} while (c == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue