diff options
author | Marvin Borner | 2021-04-15 22:47:54 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-15 22:47:54 +0200 |
commit | 4d4e784770b576199b18f22100689125a18bfd9a (patch) | |
tree | 5009a65f79af966fa6253307e64271479b1b0bed /kernel/drivers | |
parent | 462eaa9531b9e62916b02ab52759cd070de755d3 (diff) |
Basic block/unblock
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/ps2/keyboard.c | 5 |
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) |