summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/process.c')
-rw-r--r--arch/arm/kernel/process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index a35f6ebbd2c2..d07d13fcb089 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -304,11 +304,17 @@ void __show_regs(struct pt_regs *regs)
#endif
}
+#include <asm/unwind.h>
+
void show_regs(struct pt_regs * regs)
{
printk("\n");
__show_regs(regs);
+#ifdef CONFIG_CPU_V7M
+ unwind_backtrace(regs, current);
+#else
dump_stack();
+#endif
}
ATOMIC_NOTIFIER_HEAD(thread_notify_head);