comparison cos/kernel/keyboard.c @ 34:8012221dd740

Fixes for uninitialized data. This causes problems on real machines
author windel
date Mon, 16 Jan 2012 13:46:06 +0100
parents 3a6a9b929db0
children
comparison
equal deleted inserted replaced
33:d8185ddb6c7b 34:8012221dd740
28 '?','?','?','?', '?', '?', '?','?', '?', '?','?', '?', '?','?', '?', '?', 28 '?','?','?','?', '?', '?', '?','?', '?', '?','?', '?', '?','?', '?', '?',
29 '?','?','?','?', '?', '?', '?','?', '?', '?','?', '?', '?','?', '?', '?', 29 '?','?','?','?', '?', '?', '?','?', '?', '?','?', '?', '?','?', '?', '?',
30 '?','?','?','?', '?', '?', '?','?', '?', '?','?', '?', '?','?', '?', '?', 30 '?','?','?','?', '?', '?', '?','?', '?', '?','?', '?', '?','?', '?', '?',
31 '?','?','?','?', '?', '?', '?','?', '?', '?','?', '?', '?','?', '?', '?' 31 '?','?','?','?', '?', '?', '?','?', '?', '?','?', '?', '?','?', '?', '?'
32 }; 32 };
33
34 void keyboard_init()
35 {
36 shiftstate = 0;
37 charAvail = 0;
38 }
33 39
34 void keyboardDriverUpdate() 40 void keyboardDriverUpdate()
35 { 41 {
36 unsigned char scancode = inb(0x60); 42 unsigned char scancode = inb(0x60);
37 43