X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e:/osfmk/kern/processor_data.c diff --git a/osfmk/kern/processor_data.c b/osfmk/kern/processor_data.c index 01a738675..b658db17f 100644 --- a/osfmk/kern/processor_data.c +++ b/osfmk/kern/processor_data.c @@ -47,3 +47,10 @@ processor_data_init( PROCESSOR_DATA(processor, debugger_state).db_current_op = DBOP_NONE; } + +boolean_t +processor_in_panic_context( + processor_t processor) +{ + return PROCESSOR_DATA(processor, debugger_state).db_entry_count > 0; +}