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/syscall.c | |
parent | 50f949d994c33ab23d63bdb9e8a438560ab0b4c4 (diff) |
Semi-working C-based userspace syscalls
Diffstat (limited to 'src/kernel/syscall/syscall.c')
-rw-r--r-- | src/kernel/syscall/syscall.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <stdint.h> #include <kernel/syscall/syscall.h> #include <kernel/interrupts/interrupts.h> +#include <kernel/io/io.h> 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); |