MyOS Kernel
syscalls.h
1 #ifndef SYSCALLS_H
2 
3 #define SYSCALLS_H
4 
5 #define SYSCALL_CREATEPROC 0
6 #define SYSCALL_YIELD 1
7 #define SYSCALL_BLOCK 2
8 #define SYSCALL_UNBLOCK 3
9 #define SYSCALL_EXIT 4
10 #define SYSCALL_GET_ERRNO_ADDR 5
11 #define SYSCALL_GET_PID 6
12 #define SYSCALL_NEW_THREAD 14
13 
14 #define SYSCALL_ALLOC_MEM 7
15 #define SYSCALL_PRIV_MAP_PAGES 8
16 #define SYSCALL_NEW_ADDR_SPACE 9
17 #define SYSCALL_ADDR_SPACES_COPY_DATA 10
18 
19 #define SYSCALL_SERIAL_PRINT 11
20 #define SYSCALL_GET_INITRD_SZ 12
21 #define SYSCALL_COPY_INITRD 13
22 
23 #endif