aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/ps2/keyboard.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-17 13:55:51 +0200
committerMarvin Borner2021-04-17 13:55:51 +0200
commit89b5b9acf6037fc1a87f9e85c64831187a47ba94 (patch)
tree54b2cdc2dbedfb8594a2d89730805467602f7d93 /kernel/drivers/ps2/keyboard.c
parent7485f7e441ca892876d9401380aa77610eb85f76 (diff)
Implemented I/O polling
Diffstat (limited to 'kernel/drivers/ps2/keyboard.c')
-rw-r--r--kernel/drivers/ps2/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/ps2/keyboard.c b/kernel/drivers/ps2/keyboard.c
index 616c539..be057d7 100644
--- a/kernel/drivers/ps2/keyboard.c
+++ b/kernel/drivers/ps2/keyboard.c
@@ -60,7 +60,7 @@ static res keyboard_read(void *buf, u32 offset, u32 count)
static res keyboard_ready(void)
{
- return !stack_empty(queue);
+ return !stack_empty(queue) ? EOK : -EAGAIN;
}
CLEAR void ps2_keyboard_reset(void)