14 #include <linux/export.h>
17 #include "../debug_core.h"
42 kdb_reason_t
reason = KDB_REASON_OOPS;
43 kdb_dbtrap_t db_result = KDB_DB_NOBPT;
48 reason = KDB_REASON_SWITCH;
54 reason = KDB_REASON_KEYBOARD;
57 reason = KDB_REASON_NMI;
61 reason = KDB_REASON_BREAK;
62 db_result = KDB_DB_BPT;
68 if (reason == KDB_REASON_BREAK || reason == KDB_REASON_SWITCH) {
82 reason = KDB_REASON_BREAK;
83 db_result = KDB_DB_BPT;
90 if (reason != KDB_REASON_BREAK && ks->
ex_vector == 0 &&
92 reason = KDB_REASON_SSTEP;
93 db_result = KDB_DB_BPT;
114 KDB_FLAG_SET(CATASTROPHIC);
116 if (
KDB_STATE(SSBPT) && reason == KDB_REASON_SSTEP) {
146 KDB_FLAG_CLEAR(CATASTROPHIC);