summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-11-06 10:29:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-09 07:50:07 +0100
commitacc017737f8ec65740be798e8daea257eb86f0aa (patch)
treeb325e84ea6181a3eb193c211d68bb12533a5b690 /arch/arm/lib
parentd9c2cfd534d2ebda662f2656b2e8076b255b4987 (diff)
downloadbarebox-acc017737f8ec65740be798e8daea257eb86f0aa.tar.gz
barebox-acc017737f8ec65740be798e8daea257eb86f0aa.tar.xz
ARM: don't let the unwinder depend on exception handling
To be able to use dump_stack() without support exception handling the definition of dump_stack has to move to a file that is actually compiled without ARM_EXCEPTIONS. Fixes: d332597c7c16 ("ARM: make exception handling optional") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/unwind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/lib/unwind.c b/arch/arm/lib/unwind.c
index 7932bca702..c3dca5b61d 100644
--- a/arch/arm/lib/unwind.c
+++ b/arch/arm/lib/unwind.c
@@ -331,6 +331,11 @@ void unwind_backtrace(struct pt_regs *regs)
}
}
+void dump_stack(void)
+{
+ unwind_backtrace(NULL);
+}
+
static int unwind_init(void)
{
struct unwind_idx *idx;