Subversion Repositories HelenOS-historic

Rev

Rev 960 | Rev 1113 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 960 Rev 968
Line 30... Line 30...
30
#define __LIBC__LIBC_H__
30
#define __LIBC__LIBC_H__
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
#include <kernel/arch/mm/page.h>
35
 
36
 
36
#define __SYSCALL0(id) __syscall(0, 0, 0, 0, id)
37
#define __SYSCALL0(id) __syscall(0, 0, 0, 0, id)
37
#define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, id)
38
#define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, id)
38
#define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, id)
39
#define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, id)
39
#define __SYSCALL3(id, p1, p2, p3) __syscall(p1,p2,p3, 0, id)
40
#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)
41
#define __SYSCALL4(id, p1, p2, p3, p4) __syscall(p1,p2,p3,p4,id)
41
 
42
 
-
 
43
#define getpagesize()     (PAGE_SIZE)
-
 
44
 
42
extern void __main(void);
45
extern void __main(void);
43
extern void __exit(void);
46
extern void __exit(void);
44
extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2,
47
extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2,
45
              const sysarg_t p3, const sysarg_t p4,
48
              const sysarg_t p3, const sysarg_t p4,
46
              const syscall_t id);
49
              const syscall_t id);