X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/eee3565979933af707c711411001ba11fe406a3c..813fb2f63a553c957e917ede5f119b021d6ce391:/osfmk/i386/AT386/model_dep.c diff --git a/osfmk/i386/AT386/model_dep.c b/osfmk/i386/AT386/model_dep.c index 27dd4ccc6..ebb29b76b 100644 --- a/osfmk/i386/AT386/model_dep.c +++ b/osfmk/i386/AT386/model_dep.c @@ -124,6 +124,7 @@ #include #include +#include #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,