Introduce config option to select which IO port to send debug output on
[seabios.git] / src / output.c
index 462ffb773d9c74f3ffb889ac508f526abe0660df..bdde7ccaa4fbac2c5ec12700c152c0de9fc58203 100644 (file)
@@ -75,9 +75,9 @@ putc_debug(struct putcinfo *action, char c)
 {
     if (! CONFIG_DEBUG_LEVEL)
         return;
-    if (! CONFIG_COREBOOT)
+    if (CONFIG_DEBUG_IO)
         // Send character to debug port.
-        outb(c, PORT_BIOS_DEBUG);
+        outb(c, CONFIG_DEBUG_IO_PORT);
     if (c == '\n')
         debug_serial('\r');
     debug_serial(c);