Title: [6833] trunk/arch/blackfin/kernel/traps.c: Add missing anomaly workaround for ANOMALY_05000281 - we can't return to
Revision
6833
Author
rgetz
Date
2009-06-22 15:23:48 -0500 (Mon, 22 Jun 2009)

Log Message

Add missing anomaly workaround for ANOMALY_05000281 - we can't return to
instructions which cause hardware errors. This screws up gdb - so a
better fix will need to be figured out long term - but for now this is
OK.

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/traps.c (6832 => 6833)


--- trunk/arch/blackfin/kernel/traps.c	2009-06-22 18:21:38 UTC (rev 6832)
+++ trunk/arch/blackfin/kernel/traps.c	2009-06-22 20:23:48 UTC (rev 6833)
@@ -615,7 +615,8 @@
 		force_sig_info(sig, &info, current);
 	}
 
-	if (ANOMALY_05000461 && trapnr == VEC_HWERR && !access_ok(VERIFY_READ, fp->pc, 8))
+	if ((ANOMALY_05000461 && trapnr == VEC_HWERR && !access_ok(VERIFY_READ, fp->pc, 8)) ||
+		(ANOMALY_05000281 && trapnr == VEC_HWERR))
 		fp->pc = SAFE_USER_INSTRUCTION;
 
  traps_done:
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to