mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Re: [PATCH Mütze] ARM: don't let the unwinder depend on exception handling
       [not found] <1446802152-6743-1-git-send-email-u.kleine-koenig@pengutronix.de>
@ 2015-11-09  6:50 ` Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2015-11-09  6:50 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox

On Fri, Nov 06, 2015 at 10:29:12AM +0100, Uwe Kleine-König wrote:
> 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>

Applied, thanks

Sascha

> ---
>  arch/arm/Kconfig          | 1 -
>  arch/arm/cpu/interrupts.c | 7 -------
>  arch/arm/lib/unwind.c     | 5 +++++
>  3 files changed, 5 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 203f912e96e5..dafbf7807bbb 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -317,7 +317,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 c437af71888a..fb4bb78daecf 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 7932bca702f3..c3dca5b61d7e 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;
> -- 
> 2.6.1
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-09  6:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1446802152-6743-1-git-send-email-u.kleine-koenig@pengutronix.de>
2015-11-09  6:50 ` [PATCH Mütze] ARM: don't let the unwinder depend on exception handling Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox