From 45184af20936cb889b658e69e00a0bb3d522757f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 16 Feb 2020 17:29:19 +0100 Subject: Revert to good ol' paging --- src/kernel/syscall.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/kernel/syscall.c (limited to 'src/kernel/syscall.c') 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 + +/** + * 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 -- cgit v1.2.3