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);