diff options
author | dzwdz | 2022-03-30 14:14:11 +0200 |
---|---|---|
committer | dzwdz | 2022-03-30 14:14:11 +0200 |
commit | 6b7cbc2842354eabb7c3345390c5891a6f881f0c (patch) | |
tree | d3eb3975ceb25e72f04938e04727b8af73c0104b /src/kernel/arch/i386/tty/tty.c | |
parent | 32a4c0bc7712ea96391b468e63ea476313510323 (diff) |
kernel: remove the keyboard driver, add a `/ps2` device
Diffstat (limited to 'src/kernel/arch/i386/tty/tty.c')
-rw-r--r-- | src/kernel/arch/i386/tty/tty.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/arch/i386/tty/tty.c b/src/kernel/arch/i386/tty/tty.c index a63c16a..ebe0fd3 100644 --- a/src/kernel/arch/i386/tty/tty.c +++ b/src/kernel/arch/i386/tty/tty.c @@ -1,5 +1,4 @@ #include <kernel/arch/i386/interrupts/irq.h> -#include <kernel/arch/i386/tty/keyboard.h> #include <kernel/arch/i386/tty/serial.h> #include <kernel/arch/i386/tty/vga.h> #include <kernel/arch/io.h> @@ -17,11 +16,11 @@ void tty_read(char *buf, size_t len) { irq_interrupt_flag(true); for (size_t i = 0; i < len; i++) { for (;;) { - if (serial_poll_read(&buf[i])) break; - if (keyboard_poll_read(&buf[i])) break; + if (serial_poll_read(&buf[i])) break; asm("hlt" ::: "memory"); } } + irq_interrupt_flag(false); } void tty_write(const char *buf, size_t len) { |