提交 a80d5f44 编写于 作者: R Robin Getz 提交者: Mike Frysinger

Blackfin: handle HW errors in the new "FAULT" printing code

Signed-off-by: NRobin Getz <robin.getz@analog.com>
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
上级 a6d9dbf5
...@@ -672,6 +672,15 @@ void dump_bfin_trace_buffer(void) ...@@ -672,6 +672,15 @@ void dump_bfin_trace_buffer(void)
* the trace buffer, (since it doesn't commit), so * the trace buffer, (since it doesn't commit), so
* we print out the fault address here * 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 && if (!fault && addr == (unsigned short *)trap &&
(cpu_pda[cpu].seqstat & SEQSTAT_EXCAUSE) > VEC_EXCPT15) { (cpu_pda[cpu].seqstat & SEQSTAT_EXCAUSE) > VEC_EXCPT15) {
decode_address(buf, cpu_pda[cpu].icplb_fault_addr); decode_address(buf, cpu_pda[cpu].icplb_fault_addr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册