aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscall.c')
-rw-r--r--src/kernel/syscall.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/kernel/syscall.c b/src/kernel/syscall.c
new file mode 100644
index 0000000..68750e1
--- /dev/null
+++ b/src/kernel/syscall.c
@@ -0,0 +1,20 @@
+#include <kernel/syscall.h>
+
+/**
+ * DEFINITIONS
+ */
+DEFN_SYSCALL0(halt, 0);
+
+DEFN_SYSCALL1(write, 1, const char *);
+
+DEFN_SYSCALL1(read, 2, const char *);
+
+DEFN_SYSCALL1(writec, 3, char);
+
+DEFN_SYSCALL0(readc, 4);
+
+DEFN_SYSCALL0(get_pointers, 5);
+
+DEFN_SYSCALL1(alloc, 6, uint32_t);
+
+DEFN_SYSCALL1(free, 7, uint32_t); \ No newline at end of file