diff --git a/include/kernel.h b/include/kernel.h index 0efc5f5..1a3ad1e 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -6,6 +6,7 @@ #include "queue.h" #include "mmgr.h" #include "syscalls.h" +#include "types/syscallid.h" #include #define MAX_SYSCALL_ID 256 diff --git a/include/syscalls.h b/include/syscalls.h index 3efd400..d3372d5 100644 --- a/include/syscalls.h +++ b/include/syscalls.h @@ -3,19 +3,6 @@ #include #include -enum syscall_id_t -{ - SYSCALL_TEST = 1, - SYSCALL_YIELD, - SYSCALL_MMAP, - SYSCALL_MUNMAP, - SYSCALL_TERMINATE_SELF, - SYSCALL_SEND, - SYSCALL_RECEIVE, - SYSCALL_OPEN_PORT, - SYSCALL_CLOSE_PORT -}; - typedef union { long signed_int; diff --git a/include/types/syscallid.h b/include/types/syscallid.h new file mode 100644 index 0000000..fe95a5b --- /dev/null +++ b/include/types/syscallid.h @@ -0,0 +1,17 @@ +#ifndef QUARK_SYSCALLID_H +#define QUARK_SYSCALLID_H + +enum syscall_id_t +{ + SYSCALL_TEST = 1, + SYSCALL_MMAP, + SYSCALL_MUNMAP, + SYSCALL_YIELD, + SYSCALL_EXIT, + SYSCALL_SEND, + SYSCALL_RECEIVE, + SYSCALL_OPEN_PORT, + SYSCALL_CLOSE_PORT +}; + +#endif \ No newline at end of file diff --git a/src/kernel.c b/src/kernel.c index f9ebb83..6bcf553 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -11,6 +11,7 @@ #include "platform/context.h" #include "platform/putc.h" #include "types/status.h" +#include "types/syscallid.h" struct kernel_t kernel;