summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-18 22:54:14 -0400
committerIan Moffett <ian@osmora.org>2024-05-18 23:11:48 -0400
commited31f8283ca62f550da28456bc190250d6495815 (patch)
treee242beb746cb87eaffaf382a2b013f9a20b5568b /sys/arch
parenta39658738ca07b4fa277a5e2de2c54ac731ee612 (diff)
kernel: tty: Handle input processing better
- Fix copying logic in tty_read() - Handle ICANON correctly - Add ECHO c_lflag bit - Add TTY_SOURCE_DEV and TTY_SOURCE_RAW defines Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/isa/i8042.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/amd64/isa/i8042.c b/sys/arch/amd64/isa/i8042.c
index 0f160d3..41b74ef 100644
--- a/sys/arch/amd64/isa/i8042.c
+++ b/sys/arch/amd64/isa/i8042.c
@@ -234,7 +234,7 @@ kb_isr(void *sf)
while (__TEST(inb(I8042_STATUS), I8042_OBUF_FULL)) {
data = inb(I8042_DATA);
if (scancode_to_chr(data, &c) == 0) {
- tty_putc(&g_root_tty, c);
+ tty_putc(&g_root_tty, c, TTY_SOURCE_DEV);
}
}
spinlock_release(&data_lock);