From 3135fe15db4e7c52a5144468e256248b27b5fa9d Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Wed, 3 Jun 2009 18:58:26 +0000 Subject: [PATCH] --- yaml --- r: 148589 b: refs/heads/master c: 81f7f45606812f1d15d618c2646d0f33ca111f87 h: refs/heads/master i: 148587: 4e9fdfadb060918fa15fd72251f557785ec25533 v: v3 --- [refs] | 2 +- trunk/arch/blackfin/kernel/traps.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index aebea6a8d276..2f3a1fede820 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0a990614264f04879d9608da1cfcf9a6596efe08 +refs/heads/master: 81f7f45606812f1d15d618c2646d0f33ca111f87 diff --git a/trunk/arch/blackfin/kernel/traps.c b/trunk/arch/blackfin/kernel/traps.c index 35f675f5ca16..63ccb283acdc 100644 --- a/trunk/arch/blackfin/kernel/traps.c +++ b/trunk/arch/blackfin/kernel/traps.c @@ -68,6 +68,13 @@ ({ if (0) printk(fmt, ##arg); 0; }) #endif +#if defined(CONFIG_DEBUG_MMRS) || defined(CONFIG_DEBUG_MMRS_MODULE) +u32 last_seqstat; +#ifdef CONFIG_DEBUG_MMRS_MODULE +EXPORT_SYMBOL(last_seqstat); +#endif +#endif + /* Initiate the event table handler */ void __init trap_init(void) { @@ -245,6 +252,9 @@ asmlinkage void trap_c(struct pt_regs *fp) unsigned long trapnr = fp->seqstat & SEQSTAT_EXCAUSE; trace_buffer_save(j); +#if defined(CONFIG_DEBUG_MMRS) || defined(CONFIG_DEBUG_MMRS_MODULE) + last_seqstat = (u32)fp->seqstat; +#endif /* Important - be very careful dereferncing pointers - will lead to * double faults if the stack has become corrupt