From 66bfde10d1aa1857fa7e569151a7edff96ea618b Mon Sep 17 00:00:00 2001 From: "Eric W. Biederman" Date: Tue, 16 Jul 2002 23:02:53 +0000 Subject: [PATCH] Add missing includes, Change #ifdef SMP to #if SMP == 1 --- src/arch/i386/lib/hardwaremain.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/arch/i386/lib/hardwaremain.c b/src/arch/i386/lib/hardwaremain.c index 24fea292aa..0fb8066a55 100644 --- a/src/arch/i386/lib/hardwaremain.c +++ b/src/arch/i386/lib/hardwaremain.c @@ -66,6 +66,10 @@ static char rcsid[] = "$Id$"; #include #include +#if USE_ELF_BOOT +#include +#include +#endif /* The processor map. * Now that SMP is in linuxbios, and Linux counts on us @@ -121,7 +125,7 @@ static struct mem_range *get_ramsize(void) return mem; } -#ifdef SMP +#if SMP == 1 /* Number of cpus that are currently running in linuxbios */ static atomic_t active_cpus = ATOMIC_INIT(1);