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/syscall.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/syscall/syscall.c') diff --git a/src/kernel/syscall/syscall.c b/src/kernel/syscall/syscall.c index 289274b..bb32965 100644 --- a/src/kernel/syscall/syscall.c +++ b/src/kernel/syscall/syscall.c @@ -1,6 +1,7 @@ #include #include #include +#include void syscalls_install() { @@ -10,6 +11,8 @@ void syscalls_install() uint32_t syscall_handler(uint32_t id, uint32_t arg0, uint32_t arg1, uint32_t arg2) { + serial_write("Received syscall!\n"); + switch (id) { case 1: return sys_write((char *) arg0, arg1); -- cgit v1.2.3