summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm/pda.h
diff options
context:
space:
mode:
authorGraf Yang <graf.yang@analog.com>2009-07-22 13:56:24 +0200
committerMike Frysinger <vapier@gentoo.org>2009-09-17 03:31:57 +0200
commit01b9f4b0ed3b1111b2080a3c9bcb66df1fdf48b7 (patch)
tree0963b346d63cc7ee44e3e769cc8435d224e17a87 /arch/blackfin/include/asm/pda.h
parentBlackfin: bf533-stamp: fix typo in SPI frequency for ad1836 codec (diff)
downloadlinux-01b9f4b0ed3b1111b2080a3c9bcb66df1fdf48b7.tar.xz
linux-01b9f4b0ed3b1111b2080a3c9bcb66df1fdf48b7.zip
Blackfin: improve double fault debug handling
Since the hardware only provides reporting for the last exception handled, and the values are valid only when executing the exception handler, we need to save the context for reporting at a later point. While we do this for one exception, it doesn't work properly when handling a second one as the original exception is clobbered by the double fault. So when double fault debugging is enabled, create a dedicated shadow of these values and save/restore out of there. Now the crash report properly displays the first exception as well as the second one. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/pda.h')
-rw-r--r--arch/blackfin/include/asm/pda.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/pda.h b/arch/blackfin/include/asm/pda.h
index 69b96b40c188..a6f95695731d 100644
--- a/arch/blackfin/include/asm/pda.h
+++ b/arch/blackfin/include/asm/pda.h
@@ -61,6 +61,12 @@ struct blackfin_pda { /* Per-processor Data Area */
unsigned long retx;
unsigned long seqstat;
unsigned int __nmi_count; /* number of times NMI asserted on this CPU */
+#ifdef CONFIG_DEBUG_DOUBLEFAULT
+ unsigned long dcplb_doublefault_addr;
+ unsigned long icplb_doublefault_addr;
+ unsigned long retx_doublefault;
+ unsigned long seqstat_doublefault;
+#endif
};
extern struct blackfin_pda cpu_pda[];