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