author | Robin Getz
<robin.getz@analog.com> 2010-03-29 14:07:33 UTC |
committer | Mike Frysinger
<vapier@gentoo.org> 2010-05-22 18:19:07 UTC |
parent | a6d9dbf5e4daaf21b33917a809a5ac1e7bce9e05 |
arch/blackfin/kernel/trace.c | +9 | -0 |
diff --git a/arch/blackfin/kernel/trace.c b/arch/blackfin/kernel/trace.c index 317d4273ca6..59fcdf6b013 100644 --- a/arch/blackfin/kernel/trace.c +++ b/arch/blackfin/kernel/trace.c @@ -672,6 +672,15 @@ void dump_bfin_trace_buffer(void) * the trace buffer, (since it doesn't commit), so * we print out the fault address here */ + if (!fault && addr == ((unsigned short *)evt_ivhw)) { + addr = (unsigned short *)bfin_read_TBUF(); + decode_address(buf, (unsigned long)addr); + pr_notice(" FAULT : %s ", buf); + decode_instruction(addr); + pr_cont("\n"); + fault = 1; + continue; + } if (!fault && addr == (unsigned short *)trap && (cpu_pda[cpu].seqstat & SEQSTAT_EXCAUSE) > VEC_EXCPT15) { decode_address(buf, cpu_pda[cpu].icplb_fault_addr);