diff options
author | Helge Deller <deller@gmx.de> | 2023-10-14 12:36:43 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-10-14 13:39:42 +0200 |
commit | 44b627c88bb8c08f0a859311f16afd69188ad653 (patch) | |
tree | 6f59b9b58aa1adb2b9fea5a84d5df3d54e3013aa | |
parent | d79a1810b3726f358edd856564b106328216653e (diff) | |
download | seabios-hppa-44b627c88bb8c08f0a859311f16afd69188ad653.zip seabios-hppa-44b627c88bb8c08f0a859311f16afd69188ad653.tar.gz seabios-hppa-44b627c88bb8c08f0a859311f16afd69188ad653.tar.bz2 |
parisc/serialio: Use portaddr_t type for DebugOutputPort
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | src/hw/serialio.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |