* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
+
#include <debug.h>
-#include <mach_rt.h>
#include <mach_kdp.h>
#include <mach_assert.h>
#include <i386/asm.h>
#include <i386/cpuid.h>
#include <i386/eflags.h>
+#include <i386/postcode.h>
#include <i386/proc_reg.h>
#include <i386/trap.h>
#include <assym.s>
ret
#if DEBUG
+#ifndef TERI
+#define TERI 1
+#endif
+#endif
+
+#if TERI
.globl EXT(thread_exception_return_internal)
#else
.globl EXT(thread_exception_return)
call EXT(dtrace_thread_bootstrap)
#endif
-#if DEBUG
+#if TERI
LEXT(thread_exception_return_internal)
#else
LEXT(thread_exception_return)
RECOVERY_SECTION
RECOVER_TABLE_END
+
+/*
+ * Vector here on any exception at startup prior to switching to
+ * the kernel's idle page-tables and installing the kernel master IDT.
+ */
+Entry(vstart_trap_handler)
+ POSTCODE(BOOT_TRAP_HLT)
+ hlt
+