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_write.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/kernel/syscall/actions/sys_write.c') diff --git a/src/kernel/syscall/actions/sys_write.c b/src/kernel/syscall/actions/sys_write.c index 8531e85..6377473 100644 --- a/src/kernel/syscall/actions/sys_write.c +++ b/src/kernel/syscall/actions/sys_write.c @@ -9,10 +9,8 @@ uint32_t sys_write(char *buf) return strlen((const char *) buf); } -uint32_t sys_writec(char *ch) +uint32_t sys_writec(char ch) { - serial_write_hex(*ch); - serial_write("\n\n"); - writec((char) *ch); + writec((char) ch); return 0; } \ No newline at end of file -- cgit v1.2.3