]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/processor_data.c
xnu-6153.11.26.tar.gz
[apple/xnu.git] / osfmk / kern / processor_data.c
index 01a7386750d02895ab75678367b42be6ea3c492d..b658db17f1f14b1b8ab05b436342492cfdb0a84d 100644 (file)
@@ -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;
+}