From 025709e8643eb24e3360e575564b34ebd8062fd7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 17 Dec 2019 21:50:02 +0100 Subject: Finally fixed text input syscalls! I guess I can officially call me dumb now as I just forgot to return the actual value from the syscall handler... --- src/kernel/syscall/actions/sys_read.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/kernel/syscall/actions/sys_read.c') diff --git a/src/kernel/syscall/actions/sys_read.c b/src/kernel/syscall/actions/sys_read.c index 02960f6..83e645c 100644 --- a/src/kernel/syscall/actions/sys_read.c +++ b/src/kernel/syscall/actions/sys_read.c @@ -16,10 +16,7 @@ uint32_t sys_read(char *buf) return strlen(buf); } -uint32_t sys_readc(char *ch) +uint32_t sys_readc() { - char buf = getch(); - ch = &buf; - serial_put(*ch); - return (uint32_t) ch; + return (uint32_t) getch(); } \ No newline at end of file -- cgit v1.2.3