From 33bdf18dad2539aca21727e95e04bfedecd37a76 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 9 Dec 2019 16:06:37 +0100 Subject: Lars, your wish may come true if you fix this! --- src/userspace/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/userspace/main.c') diff --git a/src/userspace/main.c b/src/userspace/main.c index 1e68496..64077eb 100644 --- a/src/userspace/main.c +++ b/src/userspace/main.c @@ -6,8 +6,7 @@ void user_main() syscall_write(hello); while (1) { - char buffer[20] = {'\0'}; - syscall_read(buffer); - syscall_write(buffer); + char ch = (char) syscall_readc(); + syscall_writec(ch); }; } \ No newline at end of file -- cgit v1.2.3