aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/elflink/ldlinux/readconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c
index 9d50c2f3..7ac216b0 100644
--- a/com32/elflink/ldlinux/readconfig.c
+++ b/com32/elflink/ldlinux/readconfig.c
@@ -1286,7 +1286,7 @@ do_include:
if (port <= 3) {
/* Get the I/O port from the BIOS */
port <<= 1;
- port = *(volatile uint16_t *)serial_base;
+ port = *(volatile uint16_t *)(serial_base + port);
}