+typedef union {
+ kern_return_t (*args_0)(void);
+ kern_return_t (*args_1)(uint32_t);
+ kern_return_t (*args64_1)(uint64_t);
+ kern_return_t (*args_2)(uint32_t,uint32_t);
+ kern_return_t (*args_3)(uint32_t,uint32_t,uint32_t);
+ kern_return_t (*args_4)(uint32_t,uint32_t,uint32_t,uint32_t);
+ kern_return_t (*args_var)(uint32_t,...);
+ int (*args_bsd_3)(uint32_t *, uint32_t,
+ uint32_t, uint32_t);
+} machdep_call_routine_t;
+
+#define MACHDEP_CALL_ROUTINE(func, args) \
+ { { .args_ ## args = func }, args, 0 }
+
+#define MACHDEP_CALL_ROUTINE64(func, args) \
+ { { .args64_ ## args = func }, args, 0 }
+
+#define MACHDEP_BSD_CALL_ROUTINE(func, args) \
+ { { .args_bsd_ ## args = func }, args, 1 }