aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/main.c
diff options
context:
space:
mode:
authorMarvin Borner2019-12-09 16:06:37 +0100
committerMarvin Borner2019-12-09 16:06:37 +0100
commit33bdf18dad2539aca21727e95e04bfedecd37a76 (patch)
tree26ca76090ef534ca192a2ee25dded3cf11fe08cc /src/userspace/main.c
parent79d2ca772615474f18f32e91cf7fa8d53d02e73d (diff)
Lars, your wish may come true if you fix this!
Diffstat (limited to 'src/userspace/main.c')
-rw-r--r--src/userspace/main.c5
1 files changed, 2 insertions, 3 deletions
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