summaryrefslogtreecommitdiff
path: root/src/pc80/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pc80/serial.c')
-rw-r--r--src/pc80/serial.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pc80/serial.c b/src/pc80/serial.c
index f8005da277..45e0ce09e2 100644
--- a/src/pc80/serial.c
+++ b/src/pc80/serial.c
@@ -91,8 +91,13 @@ static void uart_init(void)
#endif
outb(UART_LCS, TTYS0_BASE + UART_LCR);
}
+
#else
+/* CONFIG_USE_PRINTK_IN_CAR == 1 */
+#if CONFIG_USE_INIT == 0
#include "../lib/uart8250.c"
+#endif
+
extern void uart8250_init(unsigned base_port, unsigned divisor, unsigned lcs);
static void uart_init(void)
{