Fixed warnings

This commit is contained in:
Carlos
2015-03-23 16:08:34 +01:00
parent 8a5e637701
commit 8ad1936237
13 changed files with 75 additions and 15 deletions

View File

@@ -8,6 +8,8 @@
#define BACKSPACE 0x0E
#define ENTER 0x1C
static char key_buffer[256];
#define SC_MAX 57
const char *sc_name[] = { "ERROR", "Esc", "1", "2", "3", "4", "5", "6",
"7", "8", "9", "0", "-", "=", "Backspace", "Tab", "Q", "W", "E",
@@ -21,7 +23,7 @@ const char sc_ascii[] = { '?', '?', '1', '2', '3', '4', '5', '6',
'H', 'J', 'K', 'L', ';', '\'', '`', '?', '\\', 'Z', 'X', 'C', 'V',
'B', 'N', 'M', ',', '.', '/', '?', '?', '?', ' '};
static void keyboard_callback(registers_t regs) {
static void keyboard_callback() {
/* The PIC leaves us the scancode in port 0x60 */
u8 scancode = port_byte_in(0x60);