Subversion Repositories HelenOS

Rev

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

Rev 3343 Rev 3492
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) __syscall(0, 0, 0, 0, 0, 0, id)
42
#define __SYSCALL0(id) __syscall0(0, 0, 0, 0, 0, 0, id)
43
#define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, 0, 0, id)
43
#define __SYSCALL1(id, p1) __syscall1(p1, 0, 0, 0, 0, 0, id)
44
#define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, 0, 0, id)
44
#define __SYSCALL2(id, p1, p2) __syscall2(p1, p2, 0, 0, 0, 0, id)
45
#define __SYSCALL3(id, p1, p2, p3) __syscall(p1, p2, p3, 0, 0, 0, id)
45
#define __SYSCALL3(id, p1, p2, p3) __syscall3(p1, p2, p3, 0, 0, 0, id)
46
#define __SYSCALL4(id, p1, p2, p3, p4) __syscall(p1, p2, p3, p4, 0, 0, id)
46
#define __SYSCALL4(id, p1, p2, p3, p4) __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)
47
#define __SYSCALL5(id, p1, p2, p3, p4, p5) __syscall5(p1, p2, p3, p4, p5, 0, id)
48
#define __SYSCALL6(id, p1, p2, p3, p4, p5, p6) \
48
#define __SYSCALL6(id, p1, p2, p3, p4, p5, p6) \
49
    __syscall(p1, p2, p3, p4, p5, p6,id)
49
    __syscall6(p1, p2, p3, p4, p5, p6, id)
50
 
50
 
51
extern void __main(void *pcb_ptr);
51
extern void __main(void *pcb_ptr);
52
extern void __exit(void);
52
extern void __exit(void);
53
 
53
 
54
#endif
54
#endif