diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 95103c1c9..c03f7dc88 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -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 diff --git a/arch/arm/cpu/interrupts.c b/arch/arm/cpu/interrupts.c index c437af718..fb4bb78da 100644 --- a/arch/arm/cpu/interrupts.c +++ b/arch/arm/cpu/interrupts.c @@ -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); diff --git a/arch/arm/lib/unwind.c b/arch/arm/lib/unwind.c index 7932bca70..c3dca5b61 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;