aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/vdprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/vdprintf.c')
-rw-r--r--com32/lib/vdprintf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/com32/lib/vdprintf.c b/com32/lib/vdprintf.c
index 330279b3..d74f2782 100644
--- a/com32/lib/vdprintf.c
+++ b/com32/lib/vdprintf.c
@@ -30,7 +30,12 @@ enum serial_port_regs {
MSR = 6,
SCR = 7,
};
-static const uint16_t debug_base = 0x03f8; /* I/O base address */
+
+#ifndef DEBUG_PORT
+# define DEBUG_PORT 0x03f8 /* I/O base address */
+#endif
+
+static const uint16_t debug_base = DEBUG_PORT;
static void debug_putc(char c)
{