From 0ca6d6277dfafc671a5b3718cbeb5c78e2a888ea Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 3 Nov 2017 08:40:57 +0100 Subject: [PATCH] sercon: Disable ScreenAndDebug in case both serial console and serial debug are active Signed-off-by: Gerd Hoffmann --- src/sercon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sercon.c b/src/sercon.c index 5d27051..a5dadb7 100644 --- a/src/sercon.c +++ b/src/sercon.c @@ -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 || -- 2.39.5