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:
parent
d9c2cfd534
commit
acc017737f
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue