#include <libkern/OSKextLibPrivate.h>
#include <mach/branch_predicates.h>
+#include <libkern/section_keywords.h>
#if DEBUG
#define DPRINTF(x...) kprintf(x)
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.
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,