mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH Mütze] ARM: don't let the unwinder depend on exception handling
Date: Mon, 9 Nov 2015 07:50:23 +0100	[thread overview]
Message-ID: <20151109065023.GV8526@pengutronix.de> (raw)
In-Reply-To: <1446802152-6743-1-git-send-email-u.kleine-koenig@pengutronix.de>

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

           reply	other threads:[~2015-11-09  6:50 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1446802152-6743-1-git-send-email-u.kleine-koenig@pengutronix.de>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151109065023.GV8526@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=u.kleine-koenig@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox