aa-010-show_stack
Lamely provides a generic interface to show_stack() for those architectures which have an appropriate implementation.
The alternative of course is to just take out Andrea's debug calls to show_stack(). But it would be nice to have an arch-independent way of spitting out a stack trace.
=====================================
include/linux/kernel.h renamed from include/linux/kernel.h~aa-010-show_stack +11 -0
@@ -106,6 +106,17 @@ extern int oops_in_progress; /* If set,extern int tainted;extern const char *print_tainted (void ); +/* +* show_stack() differs across architectures. If it exists, and takes +* an unsigned long * then it can be used here. +*/ +#if defined(CONFIG_X86 ) || defined(CONFIG_MIPS ) || defined(CONFIG_ARCH_S390 ) +extern void show_stack (unsigned long *); +#define arch_show_stack (p) show_stack(p) +#else +#define arch_show_stack (p) printk("show_stack() unsupported\n"); +#endif +#if DEBUG #define pr_debug(fmt,arg...) \ printk(KERN_DEBUG fmt,##arg)