public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Reinhard Meyer <u-boot@emk-elektronik.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/3] avr32: Print unrelocated PC on exception
Date: Fri, 03 Sep 2010 13:51:21 +0200	[thread overview]
Message-ID: <4C80E139.50401@emk-elektronik.de> (raw)
In-Reply-To: <1281595974-32279-2-git-send-email-haavard.skinnemoen@atmel.com>

Hello Andreas,

did/can you test that one as well?
Then I can take all 3 of the series in.

Thanks,
Reinhard

> In addition to the real PC value, also print the value of PC after
> subtracting the relocation offset. This value will match the address in
> the ELF file so it's much easier to figure out where things went wrong.
> 
> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
> ---
>  arch/avr32/cpu/exception.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/avr32/cpu/exception.c b/arch/avr32/cpu/exception.c
> index dc9c300..b21ef1f 100644
> --- a/arch/avr32/cpu/exception.c
> +++ b/arch/avr32/cpu/exception.c
> @@ -59,7 +59,8 @@ void do_unknown_exception(unsigned int ecr, struct pt_regs *regs)
>  {
>  	unsigned int mode;
>  
> -	printf("\n *** Unhandled exception %u at PC=0x%08lx\n", ecr, regs->pc);
> +	printf("\n *** Unhandled exception %u at PC=0x%08lx [%08lx]\n",
> +			ecr, regs->pc, regs->pc - gd->reloc_off);
>  
>  	switch (ecr) {
>  	case ECR_BUS_ERROR_WRITE:

  reply	other threads:[~2010-09-03 11:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12  6:52 [U-Boot] [PATCH v2 0/3] avr32: simple paging support Haavard Skinnemoen
2010-08-12  6:52 ` [U-Boot] [PATCH v2 1/3] avr32: Print unrelocated PC on exception Haavard Skinnemoen
2010-09-03 11:51   ` Reinhard Meyer [this message]
2010-09-03 13:19     ` Andreas Bießmann
2010-09-03 14:37   ` Reinhard Meyer
2010-08-12  6:52 ` [U-Boot] [PATCH v2 2/3] avr32: Use uncached() macro to get an address for SDRAM init Haavard Skinnemoen
2010-08-12 15:04   ` Detlev Zundel
2010-08-13  3:56     ` Haavard Skinnemoen
2010-08-13 11:01       ` Detlev Zundel
2010-08-13 12:12         ` Haavard Skinnemoen
2010-08-13 13:01           ` Detlev Zundel
2010-09-03 11:16   ` Andreas Bießmann
2010-09-03 14:37   ` Reinhard Meyer
2010-08-12  6:52 ` [U-Boot] [PATCH v2 3/3] avr32: Add simple paging support Haavard Skinnemoen
2010-09-03 11:10   ` Andreas Bießmann
2010-09-03 14:38   ` Reinhard Meyer

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=4C80E139.50401@emk-elektronik.de \
    --to=u-boot@emk-elektronik.de \
    --cc=u-boot@lists.denx.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