[coreboot] [commit] r5783 - in trunk/src: . devices/oprom
repository service
svn at coreboot.org
Wed Sep 8 00:30:15 CEST 2010
Author: myles
Date: Wed Sep 8 00:30:15 2010
New Revision: 5783
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5783
Log:
Make a Kconfig option for debugging output from realmode emulation. Trivial.
Signed-off-by: Myles Watson <mylesgw at gmail.com>
Acked-by: Myles Watson <mylesgw at gmail.com>
Modified:
trunk/src/Kconfig
trunk/src/devices/oprom/x86.c
trunk/src/devices/oprom/x86_interrupts.c
Modified: trunk/src/Kconfig
==============================================================================
--- trunk/src/Kconfig Tue Sep 7 19:33:17 2010 (r5782)
+++ trunk/src/Kconfig Wed Sep 8 00:30:15 2010 (r5783)
@@ -543,6 +543,17 @@
If unsure, say N.
+config REALMODE_DEBUG
+ bool "Enable debug messages for option ROM execution"
+ default n
+ depends on PCI_OPTION_ROM_RUN_REALMODE
+ help
+ This option enables additional x86emu related debug messages.
+
+ Note: This option will increase the time to emulate a ROM.
+
+ If unsure, say N.
+
config X86EMU_DEBUG
bool "Output verbose x86emu debug messages"
default n
Modified: trunk/src/devices/oprom/x86.c
==============================================================================
--- trunk/src/devices/oprom/x86.c Tue Sep 7 19:33:17 2010 (r5782)
+++ trunk/src/devices/oprom/x86.c Wed Sep 8 00:30:15 2010 (r5783)
@@ -329,6 +329,7 @@
cs = cs_ip >> 16;
flags = stackflags;
+#if CONFIG_REALMODE_DEBUG
printk(BIOS_DEBUG, "oprom: INT# 0x%x\n", intnumber);
printk(BIOS_DEBUG, "oprom: eax: %08x ebx: %08x ecx: %08x edx: %08x\n",
eax, ebx, ecx, edx);
@@ -336,6 +337,7 @@
ebp, esp, edi, esi);
printk(BIOS_DEBUG, "oprom: ip: %04x cs: %04x flags: %08x\n",
ip, cs, flags);
+#endif
// Fetch arguments from the stack and put them into
// a structure that we want to pass on to our sub interrupt
Modified: trunk/src/devices/oprom/x86_interrupts.c
==============================================================================
--- trunk/src/devices/oprom/x86_interrupts.c Tue Sep 7 19:33:17 2010 (r5782)
+++ trunk/src/devices/oprom/x86_interrupts.c Wed Sep 8 00:30:15 2010 (r5783)
@@ -156,8 +156,10 @@
break;
}
+#if CONFIG_REALMODE_DEBUG
printk(BIOS_DEBUG, "0x%x: bus %d devfn 0x%x reg 0x%x val 0x%x\n",
func, bus, devfn, reg, regs->ecx);
+#endif
regs->eax = 0;
retval = 0;
break;
More information about the coreboot
mailing list