Rev 954 | Rev 968 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 954 | Rev 960 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | 31 | ||
32 | #include <types.h> |
32 | #include <types.h> |
33 | 33 | ||
34 | #include <kernel/syscall/syscall.h> |
34 | #include <kernel/syscall/syscall.h> |
35 | 35 | ||
36 | #define __SYSCALL0(id) __syscall(0, 0, 0, id) |
36 | #define __SYSCALL0(id) __syscall(0, 0, 0, 0, id) |
37 | #define __SYSCALL1(id, p1) __syscall(p1, 0, 0, id) |
37 | #define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, id) |
38 | #define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, id) |
38 | #define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, id) |
39 | #define __SYSCALL3(id, p1, p2, p3) __syscall(p1,p2,p3,id) |
39 | #define __SYSCALL3(id, p1, p2, p3) __syscall(p1,p2,p3, 0, id) |
- | 40 | #define __SYSCALL4(id, p1, p2, p3, p4) __syscall(p1,p2,p3,p4,id) |
|
40 | 41 | ||
41 | extern void __main(void); |
42 | extern void __main(void); |
42 | extern void __exit(void); |
43 | extern void __exit(void); |
43 | extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, |
44 | extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, |
44 | const sysarg_t p3, const syscall_t id); |
45 | const sysarg_t p3, const sysarg_t p4, |
- | 46 | const syscall_t id); |
|
45 | 47 | ||
46 | 48 | ||
47 | #endif |
49 | #endif |