Fixed uninitialized memory bug in the keyboard driver.
This often prevented the letter 'c' from working in x64.
This commit is contained in:
parent
f5b46a89ed
commit
7304c8f528
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue