From 5f8b5ce7efb7738eaebad43f9648975788ae19ff Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 28 Apr 2020 20:59:57 +0200 Subject: Fixed userspace entering... Many other fixes too, but I won't mention them because I don't want to :) --- src/kernel/input/ps2/keyboard.c | 9 --------- 1 file changed, 9 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 4dc5119..2056045 100644 --- a/src/kernel/input/ps2/keyboard.c +++ b/src/kernel/input/ps2/keyboard.c @@ -108,7 +108,6 @@ void keyboard_handler(struct regs *r) } keyboard_char_buffer = current_keymap[scan_code]; - keyboard_buffer[strlen(keyboard_buffer)] = keyboard_char_buffer; } else { // RELEASE if (current_keymap[scan_code] == (int)0xffffffb5) // TODO: IDK WHY -107?! control_pressed = 0; @@ -128,16 +127,8 @@ void keyboard_rate() outb(0x60, 0x0); // Rate{00000} Delay{00} 0 } -void keyboard_clear_buffer() -{ - // kfree(keyboard_buffer); - keyboard_buffer = (char *)kmalloc(4096); // 4KiB -} - -// Installs the keyboard handler into IRQ1 void keyboard_install() { - keyboard_clear_buffer(); keyboard_rate(); irq_install_handler(1, keyboard_handler); shift_pressed = 0; -- cgit v1.2.3