aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/input
diff options
context:
space:
mode:
authorMarvin Borner2019-12-14 00:26:49 +0100
committerMarvin Borner2019-12-14 00:26:49 +0100
commit31aaf43b77bb86d3668f6903ca48ffdb0812cfe2 (patch)
tree2365961919f39eedd6f9725610e5a9db2c9ba418 /src/kernel/input
parente7d88df7a5a7e11677b68303a0d05455bf9a60d6 (diff)
idk
Diffstat (limited to 'src/kernel/input')
-rw-r--r--src/kernel/input/ps2/keyboard.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/input/ps2/keyboard.c b/src/kernel/input/ps2/keyboard.c
index 223a7c5..bafecd5 100644
--- a/src/kernel/input/ps2/keyboard.c
+++ b/src/kernel/input/ps2/keyboard.c
@@ -128,9 +128,8 @@ void keyboard_rate()
void keyboard_clear_buffer()
{
- kfree(keyboard_buffer);
- keyboard_buffer = (char *) paging_alloc_pages(1); // 4KiB
- paging_set_user((uint32_t) keyboard_buffer, 1);
+ ufree(keyboard_buffer);
+ keyboard_buffer = (char *) umalloc(4096); // 4KiB
}
// Installs the keyboard handler into IRQ1