aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/syscall.c
diff options
context:
space:
mode:
authorMarvin Borner2019-12-01 15:47:35 +0100
committerMarvin Borner2019-12-01 15:47:35 +0100
commite9407b091b34d93014b89660601da62f13df37aa (patch)
treed60f14946e96d7e1bd72657522682032f0a99e84 /src/kernel/syscall/syscall.c
parent50f949d994c33ab23d63bdb9e8a438560ab0b4c4 (diff)
Semi-working C-based userspace syscalls
Diffstat (limited to 'src/kernel/syscall/syscall.c')
-rw-r--r--src/kernel/syscall/syscall.c3
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);