New option controls whether or not printf content is also written to
the debug ports.
// Control how verbose debug output is.
#define CONFIG_DEBUG_LEVEL 1
-
// Send debugging information to serial port
#define CONFIG_DEBUG_SERIAL 0
+// Screen writes are also sent to debug ports.
+#define CONFIG_SCREEN_AND_DEBUG 1
// Support for int13 floppy drive access
#define CONFIG_FLOPPY_SUPPORT 1
outb(c, DEBUG_PORT+SEROFF_DATA);
}
-// Write a character to the serial port.
+// Make sure all serial port writes have been completely sent.
static void
debug_serial_flush()
{
static void
putc(u16 action, char c)
{
- if (CONFIG_DEBUG_LEVEL) {
+ if (CONFIG_DEBUG_LEVEL && (CONFIG_SCREEN_AND_DEBUG || !action)) {
if (! CONFIG_COREBOOT)
// Send character to debug port.
outb(c, PORT_BIOS_DEBUG);