]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/x86_64/locore.s
xnu-3789.60.24.tar.gz
[apple/xnu.git] / osfmk / x86_64 / locore.s
index 8620c19fc7c1e445adbedc1c6e8e629d7302c62d..88c3372aa42eeb96910069a37a3824e9c08c6388 100644 (file)
@@ -53,7 +53,7 @@
  * 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>
@@ -157,14 +157,22 @@ wrmsr_fail:
        movl    $1, %eax
        ret
 
+#if DEBUG
+.globl EXT(thread_exception_return_internal)
+#else
 .globl EXT(thread_exception_return)
+#endif
 .globl EXT(thread_bootstrap_return)
 LEXT(thread_bootstrap_return)
 #if CONFIG_DTRACE
        call EXT(dtrace_thread_bootstrap)
 #endif
 
+#if DEBUG
+LEXT(thread_exception_return_internal)
+#else
 LEXT(thread_exception_return)
+#endif
        cli
        xorl    %ecx, %ecx              /* don't check if we're in the PFZ */
        jmp     EXT(return_from_trap)