]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/avr32/cpu/exception.c
avr32: Print unrelocated PC on exception
[karo-tx-uboot.git] / arch / avr32 / cpu / exception.c
index dc9c3002a49631522d01ec8a7a66b3ab13c1cf12..b21ef1f928daaf891d8d749ee158b44fd33bb359 100644 (file)
@@ -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: