aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/libc/syscall.c')
-rw-r--r--src/userspace/libc/syscall.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/userspace/libc/syscall.c b/src/userspace/libc/syscall.c
index fc0e09a..cf9dc89 100644
--- a/src/userspace/libc/syscall.c
+++ b/src/userspace/libc/syscall.c
@@ -1,22 +1,24 @@
+#include <stdint.h>
+#include <common.h>
#include <syscall.h>
/**
* DEFINITIONS
*/
-DEFN_SYSCALL0(halt, 0);
+DEFN_SYSCALL0(halt, SYS_HALT);
-DEFN_SYSCALL1(exit, 1, u32);
+DEFN_SYSCALL1(exit, SYS_EXIT, u32);
-DEFN_SYSCALL0(fork, 2);
+DEFN_SYSCALL0(fork, SYS_FORK);
-DEFN_SYSCALL4(read, 3, char *, u32, u32, u8 *);
+DEFN_SYSCALL4(read, SYS_READ, char *, u32, u32, u8 *);
-DEFN_SYSCALL4(write, 4, char *, u32, u32, u8 *);
+DEFN_SYSCALL4(write, SYS_WRITE, char *, u32, u32, u8 *);
-DEFN_SYSCALL1(exec, 5, char *);
+DEFN_SYSCALL1(exec, SYS_EXEC, char *);
-DEFN_SYSCALL0(get_pid, 6);
+DEFN_SYSCALL0(get_pid, SYS_GET_PID);
-DEFN_SYSCALL1(malloc, 7, u32);
+DEFN_SYSCALL1(malloc, SYS_MALLOC, u32);
-DEFN_SYSCALL1(free, 8, u32); \ No newline at end of file
+DEFN_SYSCALL1(free, SYS_FREE, u32); \ No newline at end of file