aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-09-26 17:55:41 +0200
committerHelge Deller <deller@gmx.de>2023-09-26 17:55:41 +0200
commit99568c798b26d27816d1f1f5f81496f9c3ad7468 (patch)
tree2f3010959df454d0e2dae25dd318e083da49294c
parentbeb220f8d6b011e59462cc240ab4350c8a47b681 (diff)
downloadseabios-hppa-99568c798b26d27816d1f1f5f81496f9c3ad7468.zip
seabios-hppa-99568c798b26d27816d1f1f5f81496f9c3ad7468.tar.gz
seabios-hppa-99568c798b26d27816d1f1f5f81496f9c3ad7468.tar.bz2
Fix DebugOutputPort for PA-RISC
-rw-r--r--src/hw/serialio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hw/serialio.c b/src/hw/serialio.c
index 07958b3..df4df92 100644
--- a/src/hw/serialio.c
+++ b/src/hw/serialio.c
@@ -111,7 +111,8 @@ qemu_debug_preinit(void)
return;
/* Check if the QEMU debug output port is active */
- if (CONFIG_DEBUG_IO &&
+ /* PARISC may use serial console */
+ if (CONFIG_DEBUG_IO && !CONFIG_PARISC &&
inb(GET_GLOBAL(DebugOutputPort)) != QEMU_DEBUGCON_READBACK)
DebugOutputPort = 0;
}
@@ -122,7 +123,7 @@ qemu_debug_putc(char c)
{
if (!CONFIG_DEBUG_IO || !runningOnQEMU())
return;
- u16 port = GET_GLOBAL(DebugOutputPort);
+ portaddr_t port = GET_GLOBAL(DebugOutputPort);
if (port)
// Send character to debug port.
outb(c, port);