Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/trap-v6.c
Show First 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | abort_debug(struct trapframe *tf, u_int fsr, u_int prefetch, u_int usermode, | ||||
if (usermode) { | if (usermode) { | ||||
struct thread *td; | struct thread *td; | ||||
td = curthread; | td = curthread; | ||||
call_trapsignal(td, SIGTRAP, TRAP_BRKPT, far); | call_trapsignal(td, SIGTRAP, TRAP_BRKPT, far); | ||||
userret(td, tf); | userret(td, tf); | ||||
} else { | } else { | ||||
#ifdef KDB | #ifdef KDB | ||||
kdb_trap(T_BREAKPOINT, 0, tf); | kdb_trap((prefetch) ? T_BREAKPOINT : T_WATCHPOINT, 0, tf); | ||||
#else | #else | ||||
printf("No debugger in kernel.\n"); | printf("No debugger in kernel.\n"); | ||||
#endif | #endif | ||||
} | } | ||||
} | } | ||||
/* | /* | ||||
* Abort handler. | * Abort handler. | ||||
▲ Show 20 Lines • Show All 404 Lines • Show Last 20 Lines |