Rev 712 | Rev 959 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 712 | Rev 955 | ||
|---|---|---|---|
| Line 27... | Line 27... | ||
| 27 | */ |
27 | */ |
| 28 | 28 | ||
| 29 | #ifndef __SYSCALL_H__ |
29 | #ifndef __SYSCALL_H__ |
| 30 | #define __SYSCALL_H__ |
30 | #define __SYSCALL_H__ |
| 31 | 31 | ||
| 32 | #include <typedefs.h> |
- | |
| 33 | - | ||
| 34 | typedef enum { |
32 | typedef enum { |
| 35 | SYS_CTL = 0, |
33 | SYS_CTL = 0, |
| 36 | SYS_IO = 1, |
34 | SYS_IO = 1, |
| - | 35 | SYS_IPC_CALL = 2, |
|
| - | 36 | SYS_IPC_ANSWER = 3, |
|
| - | 37 | SYS_IPC_WAIT = 4, |
|
| 37 | SYSCALL_END |
38 | SYSCALL_END |
| 38 | } syscall_t; |
39 | } syscall_t; |
| 39 | 40 | ||
| - | 41 | #ifdef KERNEL |
|
| - | 42 | ||
| - | 43 | #include <arch/types.h> |
|
| 40 | typedef int (*syshandler_t)(); |
44 | #include <typedefs.h> |
| 41 | 45 | ||
| 42 | extern int sys_ctl(void); |
46 | typedef __native (*syshandler_t)(); |
| 43 | extern int sys_io(int fd, const void *buf, size_t count); |
- | |
| 44 | 47 | ||
| 45 | extern syshandler_t syscall_table[SYSCALL_END]; |
48 | extern syshandler_t syscall_table[SYSCALL_END]; |
| 46 | 49 | ||
| 47 | #endif |
50 | #endif |
| - | 51 | ||
| - | 52 | #endif |
|