diff options
Diffstat (limited to 'src/pc80')
-rw-r--r-- | src/pc80/Config.lb | 4 | ||||
-rw-r--r-- | src/pc80/serial.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/pc80/Config.lb b/src/pc80/Config.lb index 80d9cf46f2..650cabdbbd 100644 --- a/src/pc80/Config.lb +++ b/src/pc80/Config.lb @@ -17,3 +17,7 @@ end dir vga object keyboard.o + +if CONFIG_USE_INIT + initobject serial.o +end diff --git a/src/pc80/serial.c b/src/pc80/serial.c index b05681dcd3..d2079d32ab 100644 --- a/src/pc80/serial.c +++ b/src/pc80/serial.c @@ -96,7 +96,7 @@ static void uart_init(void) /* CONFIG_USE_PRINTK_IN_CAR == 1 */ extern void uart8250_init(unsigned base_port, unsigned divisor, unsigned lcs); -static void uart_init(void) +void uart_init(void) { #if USE_OPTION_TABLE == 1 static const unsigned char divisor[] = { 1,2,3,6,12,24,48,96 }; |