Title: [7168] trunk/arch/blackfin: bug[#5431] - Do not trace trap_c() (i.e, do not call __mcount in trap_c()).
- Revision
- 7168
- Author
- adamliyi
- Date
- 2009-08-12 19:05:35 -0400 (Wed, 12 Aug 2009)
Log Message
bug[#5431] - Do not trace trap_c() (i.e, do not call __mcount in trap_c()). It is unnecessary and double fault may be triggerred.
Modified Paths
Diff
Modified: trunk/arch/blackfin/include/asm/linkage.h (7167 => 7168)
--- trunk/arch/blackfin/include/asm/linkage.h 2009-08-12 22:43:15 UTC (rev 7167)
+++ trunk/arch/blackfin/include/asm/linkage.h 2009-08-12 23:05:35 UTC (rev 7168)
@@ -4,4 +4,6 @@
#define __ALIGN .align 4
#define __ALIGN_STR ".align 4"
+#define notrace __attribute__((no_instrument_function))
+
#endif
Modified: trunk/arch/blackfin/kernel/traps.c (7167 => 7168)
--- trunk/arch/blackfin/kernel/traps.c 2009-08-12 22:43:15 UTC (rev 7167)
+++ trunk/arch/blackfin/kernel/traps.c 2009-08-12 23:05:35 UTC (rev 7168)
@@ -257,7 +257,7 @@
return regs->ipend & 0xffc0;
}
-asmlinkage void trap_c(struct pt_regs *fp)
+asmlinkage notrace void trap_c(struct pt_regs *fp)
{
#ifdef CONFIG_DEBUG_BFIN_HWTRACE_ON
int j;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits