From ff2025e3d17a22d6d735d9c8c0d52c8243095561 Mon Sep 17 00:00:00 2001 From: Li-Ta Lo Date: Tue, 13 Nov 2001 06:31:17 +0000 Subject: [PATCH] support non-smp and no serial console cases --- src/arch/i386/lib/console.inc | 2 ++ src/include/smp/start_stop.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/arch/i386/lib/console.inc b/src/arch/i386/lib/console.inc index 7a9682353c..f1133508ee 100644 --- a/src/arch/i386/lib/console.inc +++ b/src/arch/i386/lib/console.inc @@ -7,6 +7,8 @@ console_test: .string "\r\n\r\nLinuxBIOS starting...\r\n" /* uses: ax, dx */ #if defined(SERIAL_CONSOLE) #define __CONSOLE_INLINE_TX_AL TTYS0_TX_AL +#else +#define __CONSOLE_INLINE_TX_AL #endif /* uses: esp, ax, dx */ diff --git a/src/include/smp/start_stop.h b/src/include/smp/start_stop.h index ce57b0237c..8ffcba1fe1 100644 --- a/src/include/smp/start_stop.h +++ b/src/include/smp/start_stop.h @@ -11,6 +11,7 @@ void startup_other_cpus(unsigned long *processor_map); #else #define this_processors_id() 0 #define startup_other_cpus(p) do {} while(0) +#define processor_index(p) 0 #endif #endif /* SMP_START_STOP_H */