kern
diff src/syscall.h @ 72:3941e82b07f2
- implemented syscalls: exit, waitpid, getppid
- moved sys_whatever functions out of syscall.c into more reasonable files
- putting all the definitions that must be synced with userland to include/kdef.h
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 15 Oct 2011 07:45:56 +0300 |
parents | 5b29b15c5412 |
children |
line diff
1.1 --- a/src/syscall.h Thu Oct 13 05:22:35 2011 +0300 1.2 +++ b/src/syscall.h Sat Oct 15 07:45:56 2011 +0300 1.3 @@ -1,15 +1,8 @@ 1.4 #ifndef SYSCALL_H_ 1.5 #define SYSCALL_H_ 1.6 1.7 -#define SYSCALL_INT 0x80 1.8 - 1.9 -/* when we get rid of test_proc.S we'll turn this into an enum */ 1.10 -#define SYS_HELLO 0 1.11 -#define SYS_SLEEP 1 1.12 -#define SYS_FORK 2 1.13 -#define SYS_GETPID 3 1.14 - 1.15 -#define NUM_SYSCALLS 4 1.16 +#define KDEF_SYSCALL_H 1.17 +#include "kdef.h" 1.18 1.19 #ifndef ASM 1.20 void init_syscall(void);