4 * System call argument lists.
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.8 2009/01/13 22:27:43 pooka Exp
10 #ifndef _MACH_FASTTRAPS_SYS_SYSCALLARGS_H_
11 #define _MACH_FASTTRAPS_SYS_SYSCALLARGS_H_
13 #define MACH_FASTTRAPS_SYS_MAXSYSARGS 8
16 #define syscallarg(x) \
19 struct { x datum; } le; \
20 struct { /* LINTED zero array dimension */ \
21 int8_t pad[ /* CONSTCOND */ \
22 (sizeof (register_t) < sizeof (x)) \
24 : sizeof (register_t) - sizeof (x)]; \
29 #undef check_syscall_args
30 #define check_syscall_args(call) \
31 typedef char call##_check_args[sizeof (struct call##_args) \
32 <= MACH_FASTTRAPS_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
34 struct mach_sys_cthread_set_self_args
{
35 syscallarg(mach_cproc_t
) p
;
37 check_syscall_args(mach_sys_cthread_set_self
)
40 * System call prototypes.
43 int mach_sys_cthread_set_self(struct lwp
*, const struct mach_sys_cthread_set_self_args
*, register_t
*);
45 int mach_sys_cthread_self(struct lwp
*, const void *, register_t
*);
47 int mach_sys_processor_facilities_used(struct lwp
*, const void *, register_t
*);
49 int mach_sys_load_msr(struct lwp
*, const void *, register_t
*);
51 #endif /* _MACH_FASTTRAPS_SYS_SYSCALLARGS_H_ */