Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/undefined.c
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | |||||
#ifdef KDB | #ifdef KDB | ||||
kdb_trap(T_BREAKPOINT, 0, frame); | kdb_trap(T_BREAKPOINT, 0, frame); | ||||
#else | #else | ||||
printf("No debugger in kernel.\n"); | printf("No debugger in kernel.\n"); | ||||
#endif | #endif | ||||
return; | return; | ||||
} | } | ||||
else | else | ||||
panic("Undefined instruction in kernel.\n"); | panic("Undefined instruction in kernel (0x%08x).\n", | ||||
fault_instruction); | |||||
jrtc27: If you're printing out the instruction bytes it's probably also worth printing out whether or… | |||||
Done Inline ActionsThere's no trapframe echoed super early in boot, so all you get is this 32 bit value. adrian: There's no trapframe echoed super early in boot, so all you get is this 32 bit value. | |||||
} | } | ||||
userret(td, frame); | userret(td, frame); | ||||
} | } |
If you're printing out the instruction bytes it's probably also worth printing out whether or not it's a thumb instruction? Otherwise you need to go stare at SPSR in the dumped trapframe to figure out how to even decode the thing.