summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd23130)
raw | patch | inline | side by side (parent: bd23130)
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | |
Thu, 12 Aug 2010 06:52:52 +0000 (13:52 +0700) | ||
committer | Reinhard Meyer <u-boot@emk-elektronik.de> | |
Fri, 3 Sep 2010 13:12:42 +0000 (15:12 +0200) |
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>
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 | patch | blob | history |
index dc9c3002a49631522d01ec8a7a66b3ab13c1cf12..b21ef1f928daaf891d8d749ee158b44fd33bb359 100644 (file)
{
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: