Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powerpc/trap.c
Show First 20 Lines • Show All 449 Lines • ▼ Show 20 Lines | |||||
trap_fatal(struct trapframe *frame) | trap_fatal(struct trapframe *frame) | ||||
{ | { | ||||
#ifdef KDB | #ifdef KDB | ||||
bool handled; | bool handled; | ||||
#endif | #endif | ||||
printtrap(frame->exc, frame, 1, (frame->srr1 & PSL_PR)); | printtrap(frame->exc, frame, 1, (frame->srr1 & PSL_PR)); | ||||
#ifdef KDB | #ifdef KDB | ||||
if (debugger_on_panic) { | if (debugger_on_trap) { | ||||
kdb_why = KDB_WHY_TRAP; | kdb_why = KDB_WHY_TRAP; | ||||
handled = kdb_trap(frame->exc, 0, frame); | handled = kdb_trap(frame->exc, 0, frame); | ||||
kdb_why = KDB_WHY_UNSET; | kdb_why = KDB_WHY_UNSET; | ||||
if (handled) | if (handled) | ||||
return; | return; | ||||
} | } | ||||
#endif | #endif | ||||
panic("%s trap", trapname(frame->exc)); | panic("%s trap", trapname(frame->exc)); | ||||
▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines |