Title: [6498] trunk/arch/blackfin/mach-common/entry.S: [#5120] Fix the last (I think) issue for defered hardware errors - so that while
Revision
6498
Author
rgetz
Date
2009-05-29 06:15:40 -0500 (Fri, 29 May 2009)

Log Message

[#5120] Fix the last (I think) issue for defered hardware errors - so that while
debugging with gdbserver, the kernel will not crash. With this fix -
the trace test runs overnight.

Modified Paths

Diff

Modified: trunk/arch/blackfin/mach-common/entry.S (6497 => 6498)


--- trunk/arch/blackfin/mach-common/entry.S	2009-05-29 09:42:37 UTC (rev 6497)
+++ trunk/arch/blackfin/mach-common/entry.S	2009-05-29 11:15:40 UTC (rev 6498)
@@ -200,7 +200,18 @@
 	cc = r7 == 0;
 	if !cc jump 1f;
 #endif
-
+#ifdef CONFIG_EXACT_HWERR
+	/* Read the ILAT, and to check to see if the process we are
+	 * single stepping caused a previous hardware error
+	 * If so, do not single step, (which lowers to IRQ5, and makes
+	 * us miss the error).
+	 */
+	p5.l = lo(ILAT);
+	p5.h = hi(ILAT);
+	r7 = [p5];
+	cc = bittst(r7, EVT_IVHW_P);
+	if cc jump 1f;
+#endif
 	/* Single stepping only a single instruction, so clear the trace
 	 * bit here.  */
 	r7 = syscfg;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to