Lines Matching full:exception
79 /* Called from exception.S */
309 uint64_t exception; in do_trap_supervisor() local
318 exception = frame->tf_scause & SCAUSE_CODE; in do_trap_supervisor()
326 if (dtrace_trap_func != NULL && (*dtrace_trap_func)(frame, exception)) in do_trap_supervisor()
330 CTR4(KTR_TRAP, "%s: exception=%lu, sepc=%#lx, stval=%#lx", __func__, in do_trap_supervisor()
331 exception, frame->tf_sepc, frame->tf_stval); in do_trap_supervisor()
333 switch (exception) { in do_trap_supervisor()
338 panic("Memory access exception at %#lx: %#lx", in do_trap_supervisor()
345 panic("Misaligned address exception at %#lx: %#lx", in do_trap_supervisor()
360 kdb_trap(exception, 0, frame); in do_trap_supervisor()
374 panic("Unknown kernel exception %#lx trap value %#lx", in do_trap_supervisor()
375 exception, frame->tf_stval); in do_trap_supervisor()
382 uint64_t exception; in do_trap_user() local
399 exception = frame->tf_scause & SCAUSE_CODE; in do_trap_user()
407 CTR4(KTR_TRAP, "%s: exception=%lu, sepc=%#lx, stval=%#lx", __func__, in do_trap_user()
408 exception, frame->tf_sepc, frame->tf_stval); in do_trap_user()
410 switch (exception) { in do_trap_user()
415 exception); in do_trap_user()
422 exception); in do_trap_user()
447 exception); in do_trap_user()
452 exception); in do_trap_user()
457 panic("Unknown userland exception %#lx, trap value %#lx", in do_trap_user()
458 exception, frame->tf_stval); in do_trap_user()