]> xenbits.xensource.com Git - seabios.git/commitdiff
In register dump, show %esp - not address of regs.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 28 May 2009 02:27:10 +0000 (22:27 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 28 May 2009 02:27:10 +0000 (22:27 -0400)
The address of the callers stack can be inferred from the address of
    'regs' - do the math in the dump function.

src/output.c

index a3166265585f66e3c8aa6bd995a241c868db8959..6665b6316479db0179595490e72f65b2fb8523ee 100644 (file)
@@ -325,8 +325,8 @@ dump_regs(struct bregs *regs)
     dprintf(1, "   a=%08x  b=%08x  c=%08x  d=%08x ds=%04x es=%04x ss=%04x\n"
             , regs->eax, regs->ebx, regs->ecx, regs->edx
             , regs->ds, regs->es, GET_SEG(SS));
-    dprintf(1, "  si=%08x di=%08x bp=%08x  r=%08x cs=%04x ip=%04x  f=%04x\n"
-            , regs->esi, regs->edi, regs->ebp, (u32)regs
+    dprintf(1, "  si=%08x di=%08x bp=%08x sp=%08x cs=%04x ip=%04x  f=%04x\n"
+            , regs->esi, regs->edi, regs->ebp, (u32)&regs[1]
             , regs->cs, regs->ip, regs->flags);
 }