]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ppc/model_dep.c
xnu-1504.15.3.tar.gz
[apple/xnu.git] / osfmk / ppc / model_dep.c
index a6dcb65774e0e51847649430d1e8650ea0057a79..9eff5b0bb4d2ecc5faf3227822053a7f521c0770 100644 (file)
@@ -74,6 +74,8 @@
 #include <machine/pmap.h>
 #include <device/device_types.h>
 
+#include <libkern/OSKextLibPrivate.h>
+
 #include <mach/vm_param.h>
 #include <mach/clock_types.h>
 #include <mach/machine.h>
@@ -450,9 +452,8 @@ print_backtrace(struct savearea *ssp)
 
        while(pbtcnt);                                                  /* Wait for completion */
 pbt_exit:
-       panic_display_system_configuration();
-
-       return;
+    panic_display_system_configuration();
+    return;
 }
 
 void
@@ -526,7 +527,7 @@ void dump_backtrace(struct savearea *sv, unsigned int stackptr, unsigned int fen
        }
        kdb_printf("\n");
        if(i >= DUMPFRAMES) kdb_printf("      backtrace continues...\n");       /* Say we terminated early */
-       if(i) kmod_dump((vm_offset_t *)&bframes[0], i); /* Show what kmods are in trace */
+       if(i) kmod_panic_dump((vm_offset_t *)&bframes[0], i);   /* Show what kmods are in trace */
        
 }