aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/input/ps2/keyboard.c
diff options
context:
space:
mode:
authorMarvin Borner2020-01-20 23:12:54 +0100
committerMarvin Borner2020-01-20 23:12:54 +0100
commit391ed256d21a6ae2e2456d1809f357e6e96e15d1 (patch)
tree0fe9ffb3c59bbfeb3d8a04ab7fc6efba60d81e79 /src/kernel/input/ps2/keyboard.c
parentd5d1749257ff8b9aa6b5ace4b4720b484a2860f3 (diff)
Added pure awesomeness
Actually quite some days of work but ok
Diffstat (limited to 'src/kernel/input/ps2/keyboard.c')
-rw-r--r--src/kernel/input/ps2/keyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/input/ps2/keyboard.c b/src/kernel/input/ps2/keyboard.c
index 4cbbf04..3c4ef0a 100644
--- a/src/kernel/input/ps2/keyboard.c
+++ b/src/kernel/input/ps2/keyboard.c
@@ -2,8 +2,8 @@
#include <kernel/io/io.h>
#include <kernel/graphics/vesa.h>
#include <kernel/input/input.h>
-#include <kernel/lib/stdlib/liballoc.h>
#include <kernel/lib/string.h>
+#include <kernel/memory/kheap.h>
int shift_pressed;
int control_pressed;
@@ -126,8 +126,8 @@ void keyboard_rate()
void keyboard_clear_buffer()
{
- ufree(keyboard_buffer);
- keyboard_buffer = (char *) umalloc(4096); // 4KiB
+ kfree(keyboard_buffer);
+ keyboard_buffer = (char *) kmalloc(4096); // 4KiB
}
// Installs the keyboard handler into IRQ1