]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/AT386/model_dep.c
xnu-3789.51.2.tar.gz
[apple/xnu.git] / osfmk / i386 / AT386 / model_dep.c
index 27dd4ccc6548207673c90de4a110100895666fe4..ebb29b76b8f7c921d881579a8847b2dd3c50b0ef 100644 (file)
 #include <libkern/OSKextLibPrivate.h>
 
 #include <mach/branch_predicates.h>
+#include <libkern/section_keywords.h>
 
 #if    DEBUG
 #define DPRINTF(x...)  kprintf(x)
@@ -169,7 +170,7 @@ typedef struct _cframe_t {
 static unsigned panic_io_port;
 static unsigned        commit_paniclog_to_nvram;
 
-unsigned int debug_boot_arg;
+SECURITY_READ_ONLY_LATE(unsigned int) debug_boot_arg;
 
 /*
  * Backtrace a single frame.
@@ -869,16 +870,6 @@ machine_halt_cpu(void) {
        pmCPUHalt(PM_HALT_DEBUG);
 }
 
-static int pid_from_task(task_t task)
-{
-        int pid = -1;
-
-        if (task->bsd_info)
-                pid = proc_pid(task->bsd_info);
-
-        return pid;
-}
-
 void
 DebuggerWithContext(
        __unused unsigned int   reason,