mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-17 04:14:37 +03:00
Fixed warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user