vfs: add syscall layer skeleton
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
cd916f624b
commit
09116d65ea
5 changed files with 59 additions and 2 deletions
|
|
@ -4,8 +4,17 @@
|
|||
|
||||
#include <kernel/types.h>
|
||||
|
||||
#define SYS_read 0
|
||||
#define SYS_write 1
|
||||
#define SYS_open 2
|
||||
#define SYS_close 3
|
||||
#define SYS_pread 4
|
||||
#define SYS_pwrite 5
|
||||
|
||||
typedef ssize_t (*syscall_t)(u64 arg1, u64 arg2, u64 arg3, u64 arg4, u64 arg5, u64 arg6);
|
||||
|
||||
syscall_t get_syscall(u64 no);
|
||||
int syscall_insert(void *fun, u64 no);
|
||||
int syscall_remove(u64 no);
|
||||
|
||||
#endif /* _SYSCALL_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue