]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/x86/cpu/interrupts.c
x86: Show the un-relocated IP address in exceptions
[karo-tx-uboot.git] / arch / x86 / cpu / interrupts.c
index 9217307e4abfa2d2776e2bcacce2bbfeb468bf41..addd26e4e62974ea10c4d74e4f11e2fadc5291b3 100644 (file)
@@ -103,6 +103,8 @@ static void dump_regs(struct irq_regs *regs)
 
        printf("EIP: %04x:[<%08lx>] EFLAGS: %08lx\n",
                        (u16)cs, eip, eflags);
+       if (gd->flags & GD_FLG_RELOC)
+               printf("Original EIP :[<%08lx>]\n", eip - gd->reloc_off);
 
        printf("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
                regs->eax, regs->ebx, regs->ecx, regs->edx);