From e9407b091b34d93014b89660601da62f13df37aa Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 1 Dec 2019 15:47:35 +0100 Subject: Semi-working C-based userspace syscalls --- src/kernel/syscall/actions/sys_write.c | 2 ++ 1 file changed, 2 insertions(+) (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 c537d12..fceaaab 100644 --- a/src/kernel/syscall/actions/sys_write.c +++ b/src/kernel/syscall/actions/sys_write.c @@ -1,8 +1,10 @@ #include #include +#include uint32_t sys_write(char *buf, uint32_t count) { + serial_write("WRITE"); for (uint32_t i = 0; i < count; i++) writec(*(buf++)); return count; -- cgit v1.2.3