Rev 3022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | 37 | ||
38 | #include <sys/types.h> |
38 | #include <sys/types.h> |
39 | #include <kernel/syscall/syscall.h> |
39 | #include <kernel/syscall/syscall.h> |
40 | #include <libarch/syscall.h> |
40 | #include <libarch/syscall.h> |
41 | 41 | ||
- | 42 | #define __SYSCALL0(id) \ |
|
42 | #define __SYSCALL0(id) __syscall(0, 0, 0, 0, 0, 0, id) |
43 | __syscall0(0, 0, 0, 0, 0, 0, id) |
- | 44 | #define __SYSCALL1(id, p1) \ |
|
43 | #define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, 0, 0, id) |
45 | __syscall1(p1, 0, 0, 0, 0, 0, id) |
- | 46 | #define __SYSCALL2(id, p1, p2) \ |
|
44 | #define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, 0, 0, id) |
47 | __syscall2(p1, p2, 0, 0, 0, 0, id) |
45 | #define __SYSCALL3(id, p1, p2, p3) __syscall(p1, p2, p3, 0, 0, 0, id) |
48 | #define __SYSCALL3(id, p1, p2, p3) \ |
- | 49 | __syscall3(p1, p2, p3, 0, 0, 0, id) |
|
46 | #define __SYSCALL4(id, p1, p2, p3, p4) __syscall(p1, p2, p3, p4, 0, 0, id) |
50 | #define __SYSCALL4(id, p1, p2, p3, p4) \ |
- | 51 | __syscall4(p1, p2, p3, p4, 0, 0, id) |
|
47 | #define __SYSCALL5(id, p1, p2, p3, p4, p5) __syscall(p1, p2, p3, p4, p5, 0, id) |
52 | #define __SYSCALL5(id, p1, p2, p3, p4, p5) \ |
- | 53 | __syscall5(p1, p2, p3, p4, p5, 0, id) |
|
48 | #define __SYSCALL6(id, p1, p2, p3, p4, p5, p6) \ |
54 | #define __SYSCALL6(id, p1, p2, p3, p4, p5, p6) \ |
49 | __syscall(p1, p2, p3, p4, p5, p6,id) |
55 | __syscall6(p1, p2, p3, p4, p5, p6, id) |
50 | 56 | ||
51 | extern void __main(void); |
57 | extern void __main(void *pcb_ptr); |
52 | extern void __io_init(void); |
- | |
53 | extern void __exit(void); |
58 | extern void __exit(void); |
54 | 59 | ||
55 | #endif |
60 | #endif |
56 | 61 | ||
57 | /** @} |
62 | /** @} |