]> xenbits.xensource.com Git - seabios.git/commitdiff
sercon: Disable ScreenAndDebug in case both serial console and serial debug are active
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 3 Nov 2017 07:40:57 +0000 (08:40 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 3 Nov 2017 20:02:45 +0000 (16:02 -0400)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/sercon.c

index 5d27051efb5eb00e563f8f1ac1186a7be58f0af9..a5dadb7261afef70f8f391390b0ad28d7af77e9a 100644 (file)
@@ -521,6 +521,10 @@ void sercon_setup(void)
         return;
     dprintf(1, "sercon: using ioport 0x%x\n", addr);
 
+    if (CONFIG_DEBUG_SERIAL)
+        if (addr == CONFIG_DEBUG_SERIAL_PORT)
+            ScreenAndDebug = 0;
+
     vgabios = GET_IVT(0x10);
     seabios = FUNC16(entry_10);
     if (vgabios.seg != seabios.seg ||