Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/trap.c
Show First 20 Lines • Show All 834 Lines • ▼ Show 20 Lines | if (frame->tf_rflags & PSL_T) | ||||
printf("trace trap, "); | printf("trace trap, "); | ||||
if (frame->tf_rflags & PSL_I) | if (frame->tf_rflags & PSL_I) | ||||
printf("interrupt enabled, "); | printf("interrupt enabled, "); | ||||
if (frame->tf_rflags & PSL_NT) | 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 = "); | printf("current process = %d (%s)\n", | ||||
if (curproc) { | curproc->p_pid, curthread->td_name); | ||||
printf("%lu (%s)\n", | |||||
(u_long)curproc->p_pid, curthread->td_name ? | |||||
curthread->td_name : ""); | |||||
} else { | |||||
printf("Idle\n"); | |||||
} | |||||
#ifdef KDB | #ifdef KDB | ||||
if (debugger_on_panic || kdb_active) | if (debugger_on_panic || kdb_active) | ||||
if (kdb_trap(type, 0, frame)) | if (kdb_trap(type, 0, frame)) | ||||
return; | return; | ||||
#endif | #endif | ||||
printf("trap number = %d\n", type); | printf("trap number = %d\n", type); | ||||
if (type <= MAX_TRAP_MSG) | if (type <= MAX_TRAP_MSG) | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |