Fixed uninitialized memory bug in the keyboard driver.

This often prevented the letter 'c' from working in x64.
This commit is contained in:
Jonas 'Sortie' Termansen 2011-12-01 17:27:00 +01:00
parent f5b46a89ed
commit 7304c8f528
1 changed files with 11 additions and 2 deletions

View File

@ -575,10 +575,17 @@ namespace Sortix
uint32_t** Layout = US::Layout;
nat Mask = 0;
nat LockMask = 0;
nat Mask;
nat LockMask;
bool control;
void Init()
{
Mask = 0;
LockMask = 0;
control = false;
}
const nat Shift = (1<<0);
const nat AltGr = (1<<1);
const nat ScrLck = (1<<2);
@ -642,6 +649,8 @@ namespace Sortix
// Initialize variables.
LEDs = 0;
Layouts::Init();
// Register our keystroke callback.
Interrupt::RegisterHandler(Interrupt::IRQ1, OnIRQ1);