diff options
Diffstat (limited to 'src/userspace/libc/syscall.c')
-rw-r--r-- | src/userspace/libc/syscall.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/userspace/libc/syscall.c b/src/userspace/libc/syscall.c new file mode 100644 index 0000000..c147703 --- /dev/null +++ b/src/userspace/libc/syscall.c @@ -0,0 +1,20 @@ +#include <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); |