9
0
Fork 0

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: d332597c7c ("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>
This commit is contained in:
Uwe Kleine-König 2015-11-06 10:29:12 +01:00 committed by Sascha Hauer
parent d9c2cfd534
commit acc017737f
3 changed files with 5 additions and 8 deletions

View File

@ -322,7 +322,6 @@ config ARM_EXCEPTIONS
config ARM_UNWIND
bool "enable stack unwinding support"
depends on AEABI
depends on ARM_EXCEPTIONS
help
This option enables stack unwinding support in barebox
using the information automatically generated by the

View File

@ -71,13 +71,6 @@ void show_regs (struct pt_regs *regs)
#endif
}
#ifdef CONFIG_ARM_UNWIND
void dump_stack(void)
{
unwind_backtrace(NULL);
}
#endif
static void __noreturn do_exception(struct pt_regs *pt_regs)
{
show_regs(pt_regs);

View File

@ -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;