]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: print unrelocated PC value for easier reference to object code
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 18 Feb 2014 12:44:56 +0000 (13:44 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 18 Feb 2014 12:44:56 +0000 (13:44 +0100)
arch/arm/lib/interrupts.c

index 849a37a490d31182eb955c12661abe7c993ff5c9..787dceb93d0841ea8b407777eefb60ee64405f30 100644 (file)
@@ -107,11 +107,12 @@ void show_regs (struct pt_regs *regs)
        "UK12_32",      "UK13_32",      "UK14_32",      "SYS_32",
        };
 
-       flags = condition_codes (regs);
+       flags = condition_codes(regs);
 
-       printf ("pc : [<%08lx>]    lr : [<%08lx>]\n"
+       printf ("pc : [<%08lx>] (pre-reloc: [<%08lx>]) lr : [<%08lx>]\n"
                "sp : %08lx  ip : %08lx  fp : %08lx\n",
-               instruction_pointer (regs),
+               instruction_pointer(regs),
+               instruction_pointer(regs) - gd->reloc_off,
                regs->ARM_lr, regs->ARM_sp, regs->ARM_ip, regs->ARM_fp);
        printf ("r10: %08lx  r9 : %08lx  r8 : %08lx\n",
                regs->ARM_r10, regs->ARM_r9, regs->ARM_r8);