Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a80d5f44 authored by Robin Getz's avatar Robin Getz Committed by Mike Frysinger
Browse files

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

parent a6d9dbf5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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);