summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index 25b8eb5..a42dc44 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -1,6 +1,15 @@
#include <kernel/arch/generic.h>
#include <kernel/panic.h>
-void syscall_handler() {
+int syscall_handler(int a, int b, int c, int d) {
+ // verify that the parameters get passed correctly
+ if (a != 1) panic();
+ if (b != 2) panic();
+ if (c != 3) panic();
+ if (d != 4) panic();
+
log_const("in a syscall!");
+
+ // used to check if the return value gets passed correctly
+ return 0x4e;
}