- int mach_trap_arg_count;
- int (*mach_trap_function)(void);
- boolean_t mach_trap_stack;
+ int mach_trap_arg_count; /* Number of trap arguments (Arch independant) */
+ kern_return_t (*mach_trap_function)(void *);
+#if CONFIG_REQUIRES_U32_MUNGING || (__arm__ && (__BIGGEST_ALIGNMENT__ > 4))
+ mach_munge_t *mach_trap_arg_munge32; /* system call argument munger routine for 32-bit */
+#endif
+ int mach_trap_u32_words; /* number of 32-bit words to copyin for U32 */
+#if MACH_ASSERT
+ const char* mach_trap_name;
+#endif /* MACH_ASSERT */
+} mach_trap_t;
+
+#define MACH_TRAP_TABLE_COUNT 128
+
+
+extern const mach_trap_t mach_trap_table[];
+extern int mach_trap_count;
+
+#if CONFIG_REQUIRES_U32_MUNGING || (__arm__ && (__BIGGEST_ALIGNMENT__ > 4))
+