From 31aaf43b77bb86d3668f6903ca48ffdb0812cfe2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 14 Dec 2019 00:26:49 +0100 Subject: idk --- src/kernel/input/ps2/keyboard.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/kernel/input/ps2/keyboard.c') 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 -- cgit v1.2.3