aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/main.c
diff options
context:
space:
mode:
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