Rough asynchronous syscalls
[akaros.git] / inc / syscall.h
1 #ifndef ROS_INC_SYSCALL_H
2 #define ROS_INC_SYSCALL_H
3
4 #include <inc/types.h>
5
6 /* system call numbers */
7 enum
8 {
9         SYS_cputs = 0,
10         SYS_cgetc,
11         SYS_getenvid,
12         SYS_env_destroy,
13         NSYSCALLS
14 };
15
16 #define NUM_SYS_ARGS 6
17 typedef struct Syscall {
18         uint32_t num;
19         uint32_t flags;
20         uint32_t args[NUM_SYS_ARGS];
21 } syscall_t;
22
23 #endif /* !ROS_INC_SYSCALL_H */