Changeset View
Changeset View
Standalone View
Standalone View
head/sys/amd64/amd64/trap.c
Show First 20 Lines • Show All 910 Lines • ▼ Show 20 Lines | if (frame->tf_rflags & PSL_NT) | ||||
printf("nested task, "); | printf("nested task, "); | ||||
if (frame->tf_rflags & PSL_RF) | if (frame->tf_rflags & PSL_RF) | ||||
printf("resume, "); | printf("resume, "); | ||||
printf("IOPL = %ld\n", (frame->tf_rflags & PSL_IOPL) >> 12); | printf("IOPL = %ld\n", (frame->tf_rflags & PSL_IOPL) >> 12); | ||||
printf("current process = %d (%s)\n", | printf("current process = %d (%s)\n", | ||||
curproc->p_pid, curthread->td_name); | curproc->p_pid, curthread->td_name); | ||||
#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(type, 0, frame); | handled = kdb_trap(type, 0, frame); | ||||
kdb_why = KDB_WHY_UNSET; | kdb_why = KDB_WHY_UNSET; | ||||
if (handled) | if (handled) | ||||
return; | return; | ||||
} | } | ||||
#endif | #endif | ||||
printf("trap number = %d\n", type); | printf("trap number = %d\n", type); | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |