aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/input/ps2/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/input/ps2/keyboard.c')
-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