From 44b627c88bb8c08f0a859311f16afd69188ad653 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Sat, 14 Oct 2023 12:36:43 +0200 Subject: parisc/serialio: Use portaddr_t type for DebugOutputPort Signed-off-by: Helge Deller --- src/hw/serialio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hw/serialio.c b/src/hw/serialio.c index 07958b3..c6cafaa 100644 --- a/src/hw/serialio.c +++ b/src/hw/serialio.c @@ -111,6 +111,7 @@ qemu_debug_preinit(void) return; /* Check if the QEMU debug output port is active */ + /* PARISC may use serial console */ if (CONFIG_DEBUG_IO && 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); -- cgit v1.1