From a80d5f449d1794d8e402f28cf3e1e9b57cb9f2d4 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Mon, 29 Mar 2010 14:07:33 +0000 Subject: Blackfin: handle HW errors in the new "FAULT" printing code Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- arch/blackfin/kernel/trace.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'arch/blackfin') 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); -- cgit v1.2.3-18-g5258