No empty .Rs/.Re
[netbsd-mini2440.git] / sys / compat / mach / arch / powerpc / fasttraps / mach_fasttraps_syscallargs.h
blob7a6a50f043e56045347b6432c358ed2f6bd79eb6
1 /* $NetBSD$ */
3 /*
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
8 */
10 #ifndef _MACH_FASTTRAPS_SYS_SYSCALLARGS_H_
11 #define _MACH_FASTTRAPS_SYS_SYSCALLARGS_H_
13 #define MACH_FASTTRAPS_SYS_MAXSYSARGS 8
15 #undef syscallarg
16 #define syscallarg(x) \
17 union { \
18 register_t pad; \
19 struct { x datum; } le; \
20 struct { /* LINTED zero array dimension */ \
21 int8_t pad[ /* CONSTCOND */ \
22 (sizeof (register_t) < sizeof (x)) \
23 ? 0 \
24 : sizeof (register_t) - sizeof (x)]; \
25 x datum; \
26 } be; \
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_ */