]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/trap.h
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / osfmk / i386 / trap.h
index 5601e64f6e542d9ca7ae1e6a3b5f0277d2ab57b3..2753f18836db3d5df55831d5b8277eb657bfd6a9 100644 (file)
 #define T_PF_RSVD               0x8             /* reserved bit set to 1 */
 #define T_PF_EXECUTE            0x10            /* instruction fetch when NX */
 
+#if defined(MACH_KERNEL_PRIVATE)
+
 #if !defined(ASSEMBLER) && defined(MACH_KERNEL)
 
 #include <i386/thread.h>
 
+#define DEFAULT_PANIC_ON_TRAP_MASK ((1U << T_INVALID_OPCODE) |  \
+       (1U << T_GENERAL_PROTECTION) |                          \
+       (1U << T_PAGE_FAULT) |                                  \
+       (1U << T_SEGMENT_NOT_PRESENT) |                         \
+       (1U << T_STACK_FAULT))
+
+
 extern void             i386_exception(
        int                     exc,
        mach_exception_code_t   code,
@@ -158,4 +167,6 @@ extern boolean_t        kdp_i386_trap(
 #endif /* MACH_KDP */
 #endif  /* !ASSEMBLER && MACH_KERNEL */
 
+#endif /* MACH_KERNEL_PRIVATE */
+
 #endif  /* _I386_TRAP_H_ */