Title: [6565] trunk/arch/blackfin/kernel: Sync debug-mmrs with latest script, and ensure the last seqstat is
Revision
6565
Author
rgetz
Date
2009-06-03 13:58:26 -0500 (Wed, 03 Jun 2009)

Log Message

Sync debug-mmrs with latest script, and ensure the last seqstat is
exported on errors.

[!no_src_qa!] false positives in checkpatch

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/debug-mmrs.c (6564 => 6565)


--- trunk/arch/blackfin/kernel/debug-mmrs.c	2009-06-03 14:56:10 UTC (rev 6564)
+++ trunk/arch/blackfin/kernel/debug-mmrs.c	2009-06-03 18:58:26 UTC (rev 6565)
@@ -14,6 +14,8 @@
 #define D_RO(name, bits, addr)      _D(name, bits, addr, S_IRUSR)
 #define D_WO(name, bits, addr)      _D(name, bits, addr, S_IWUSR)
 
+extern int last_seqstat;
+
 static inline int sport_width(void *mmr)
 {
 	unsigned long lmmr = (unsigned long)mmr;
@@ -68,6 +70,9 @@
 	if (top == NULL)
 		return -1;
 
+	parent = debugfs_create_dir("Core Registers", top);
+	debugfs_create_x32("SEQSTAT", S_IRUSR, parent, &last_seqstat);
+
 #ifdef __ADSPBF512__
 # define USE_BF512 1
 #else

Modified: trunk/arch/blackfin/kernel/traps.c (6564 => 6565)


--- trunk/arch/blackfin/kernel/traps.c	2009-06-03 14:56:10 UTC (rev 6564)
+++ trunk/arch/blackfin/kernel/traps.c	2009-06-03 18:58:26 UTC (rev 6565)
@@ -69,6 +69,10 @@
 	({ if (0) printk(fmt, ##arg); 0; })
 #endif
 
+#ifdef CONFIG_DEBUG_MMRS
+int last_seqstat;
+#endif
+
 /* Initiate the event table handler */
 void __init trap_init(void)
 {
@@ -246,6 +250,9 @@
 	unsigned long trapnr = fp->seqstat & SEQSTAT_EXCAUSE;
 
 	trace_buffer_save(j);
+#ifdef CONFIG_DEBUG_MMRS
+	last_seqstat = fp->seqstat;
+#endif
 
 	/* Important - be very careful dereferncing pointers - will lead to
 	 * double faults if the stack has become corrupt
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to