aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/ps2/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/ps2/keyboard.c')
-rw-r--r--kernel/drivers/ps2/keyboard.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/drivers/ps2/keyboard.c b/kernel/drivers/ps2/keyboard.c
index 3c2cdbb..616c539 100644
--- a/kernel/drivers/ps2/keyboard.c
+++ b/kernel/drivers/ps2/keyboard.c
@@ -43,6 +43,8 @@ static void keyboard_handler(struct regs *r)
state = 0;
merged = 0;
+
+ io_unblock(IO_KEYBOARD);
}
static res keyboard_read(void *buf, u32 offset, u32 count)
@@ -63,7 +65,8 @@ static res keyboard_ready(void)
CLEAR void ps2_keyboard_reset(void)
{
- stack_clear(queue);
+ if (queue)
+ stack_clear(queue);
}
CLEAR void ps2_keyboard_install(u8 device)