1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 09:12:08 +02:00

arm: Show relocated PC/LR in the register dump

If we don't know the relocation address, the raw values are not very useful.
Show the pre-relocation values as well as these can be looked up in
System.map, etc.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
This commit is contained in:
Simon Glass
2015-01-30 12:04:56 -07:00
committed by Albert ARIBAUD
parent 1b1069cdce
commit 23d184d2fb

View File

@@ -137,10 +137,15 @@ void show_regs (struct pt_regs *regs)
flags = condition_codes (regs); flags = condition_codes (regs);
printf ("pc : [<%08lx>] lr : [<%08lx>]\n" printf("pc : [<%08lx>] lr : [<%08lx>]\n",
"sp : %08lx ip : %08lx fp : %08lx\n", instruction_pointer(regs), regs->ARM_lr);
instruction_pointer (regs), if (gd->flags & GD_FLG_RELOC) {
regs->ARM_lr, regs->ARM_sp, regs->ARM_ip, regs->ARM_fp); printf("reloc pc : [<%08lx>] lr : [<%08lx>]\n",
instruction_pointer(regs) - gd->reloc_off,
regs->ARM_lr - gd->reloc_off);
}
printf("sp : %08lx ip : %08lx fp : %08lx\n",
regs->ARM_sp, regs->ARM_ip, regs->ARM_fp);
printf ("r10: %08lx r9 : %08lx r8 : %08lx\n", printf ("r10: %08lx r9 : %08lx r8 : %08lx\n",
regs->ARM_r10, regs->ARM_r9, regs->ARM_r8); regs->ARM_r10, regs->ARM_r9, regs->ARM_r8);
printf ("r7 : %08lx r6 : %08lx r5 : %08lx r4 : %08lx\n", printf ("r7 : %08lx r6 : %08lx r5 : %08lx r4 : %08lx\n",