summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/cpu/x86/bist.h2
-rw-r--r--src/pc80/serial.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/include/cpu/x86/bist.h b/src/include/cpu/x86/bist.h
index ff66eabe9b..21ea69e67b 100644
--- a/src/include/cpu/x86/bist.h
+++ b/src/include/cpu/x86/bist.h
@@ -4,7 +4,7 @@
static void report_bist_failure(unsigned long bist)
{
if (bist != 0) {
-#if CONFIG_USE_INIT
+#if CONFIG_USE_PRINTK_IN_CAR
printk_emerg("BIST failed: %08x", bist);
#else
print_emerg("BIST failed: ");
diff --git a/src/pc80/serial.c b/src/pc80/serial.c
index 475c9bccf5..f8005da277 100644
--- a/src/pc80/serial.c
+++ b/src/pc80/serial.c
@@ -24,7 +24,7 @@
#define UART_LCS TTYS0_LCS
-#if CONFIG_USE_INIT == 0
+#if CONFIG_USE_PRINTK_IN_CAR == 0
/* Data */
#define UART_RBR 0x00
@@ -92,6 +92,7 @@ static void uart_init(void)
outb(UART_LCS, TTYS0_BASE + UART_LCR);
}
#else
+#include "../lib/uart8250.c"
extern void uart8250_init(unsigned base_port, unsigned divisor, unsigned lcs);
static void uart_init(void)
{