~jakub/helenos/ia64-revival

« back to all changes in this revision

Viewing changes to uspace/lib/c/include/libc.h

  • Committer: Jakub Jermar
  • Date: 2011-04-13 14:45:41 UTC
  • mfrom: (527.1.397 main-clone)
  • Revision ID: jakub@jermar.eu-20110413144541-x0j3r1zxqhsljx1o
MergeĀ mainlineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include <kernel/syscall/syscall.h>
40
40
#include <libarch/syscall.h>
41
41
 
 
42
#ifdef __32_BITS__
 
43
 
 
44
/** Explicit 64-bit arguments passed to syscalls. */
 
45
typedef uint64_t sysarg64_t;
 
46
 
 
47
#endif /* __32_BITS__ */
 
48
 
42
49
#define __SYSCALL0(id) \
43
50
        __syscall0(0, 0, 0, 0, 0, 0, id)
44
51
#define __SYSCALL1(id, p1) \
52
59
#define __SYSCALL5(id, p1, p2, p3, p4, p5) \
53
60
        __syscall5(p1, p2, p3, p4, p5, 0, id)
54
61
#define __SYSCALL6(id, p1, p2, p3, p4, p5, p6) \
55
 
    __syscall6(p1, p2, p3, p4, p5, p6, id)
56
 
 
57
 
extern void __main(void *pcb_ptr);
58
 
extern void __exit(void);
 
62
        __syscall6(p1, p2, p3, p4, p5, p6, id)
59
63
 
60
64
#endif
61
65