aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);