Subversion Repositories HelenOS

Rev

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

Rev 1787 Rev 1863
Line 35... Line 35...
35
#ifndef __LIBC__LIBC_H__
35
#ifndef __LIBC__LIBC_H__
36
#define __LIBC__LIBC_H__
36
#define __LIBC__LIBC_H__
37
 
37
 
38
#include <types.h>
38
#include <types.h>
39
#include <kernel/syscall/syscall.h>
39
#include <kernel/syscall/syscall.h>
-
 
40
#include <libarch/syscall.h>
40
 
41
 
41
#define __SYSCALL0(id) __syscall(0, 0, 0, 0, id)
42
#define __SYSCALL0(id) __syscall(0, 0, 0, 0, id)
42
#define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, id)
43
#define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, id)
43
#define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, id)
44
#define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, id)
44
#define __SYSCALL3(id, p1, p2, p3) __syscall(p1, p2, p3, 0, id)
45
#define __SYSCALL3(id, p1, p2, p3) __syscall(p1, p2, p3, 0, id)
45
#define __SYSCALL4(id, p1, p2, p3, p4) __syscall(p1, p2, p3, p4, id)
46
#define __SYSCALL4(id, p1, p2, p3, p4) __syscall(p1, p2, p3, p4, id)
46
 
47
 
47
extern void __main(void);
48
extern void __main(void);
48
extern void __io_init(void);
49
extern void __io_init(void);
49
extern void __exit(void);
50
extern void __exit(void);
50
extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, const sysarg_t p4, const syscall_t id);
-
 
51
 
-
 
52
 
51
 
53
#endif
52
#endif
54
 
53
 
55
/** @}
54
/** @}
56
 */
55
 */