diff options
author | Marvin Borner | 2019-12-01 15:47:35 +0100 |
---|---|---|
committer | Marvin Borner | 2019-12-01 15:47:35 +0100 |
commit | e9407b091b34d93014b89660601da62f13df37aa (patch) | |
tree | d60f14946e96d7e1bd72657522682032f0a99e84 /src/kernel/syscall/actions | |
parent | 50f949d994c33ab23d63bdb9e8a438560ab0b4c4 (diff) |
Semi-working C-based userspace syscalls
Diffstat (limited to 'src/kernel/syscall/actions')
-rw-r--r-- | src/kernel/syscall/actions/sys_write.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stdint-gcc.h> #include <mlibc/stdio.h> +#include <kernel/io/io.h> uint32_t sys_write(char *buf, uint32_t count) { + serial_write("WRITE"); for (uint32_t i = 0; i < count; i++) writec(*(buf++)); return count; |