diff options
Diffstat (limited to 'src/userspace/libc/syscall.c')
-rw-r--r-- | src/userspace/libc/syscall.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/userspace/libc/syscall.c b/src/userspace/libc/syscall.c index 1741376..f6761ac 100644 --- a/src/userspace/libc/syscall.c +++ b/src/userspace/libc/syscall.c @@ -5,14 +5,18 @@ */ DEFN_SYSCALL0(halt, 0); -DEFN_SYSCALL1(exec, 1, char *); +DEFN_SYSCALL1(exit, 1, u32); -DEFN_SYSCALL1(putch, 2, char *); +DEFN_SYSCALL0(fork, 2); -DEFN_SYSCALL0(scancode, 3); +DEFN_SYSCALL4(read, 3, char *, u32, u32, char *); -DEFN_SYSCALL1(malloc, 4, u32); +DEFN_SYSCALL4(write, 4, char *, u32, u32, char *); -DEFN_SYSCALL1(free, 5, u32); +DEFN_SYSCALL1(exec, 5, char *); -DEFN_SYSCALL0(pointers, 6);
\ No newline at end of file +DEFN_SYSCALL0(get_pid, 6); + +DEFN_SYSCALL1(malloc, 7, u32); + +DEFN_SYSCALL1(free, 8, u32);
\ No newline at end of file |