Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 452 → Rev 458

/SPARTAN/trunk/generic/src/main/kinit.c
43,9 → 43,9
#include <print.h>
#include <memstr.h>
 
#ifdef __SMP__
#ifdef CONFIG_SMP
#include <arch/smp/mps.h>
#endif /* __SMP__ */
#endif /* CONFIG_SMP */
 
#include <synch/waitq.h>
#include <synch/spinlock.h>
66,7 → 66,7
 
interrupts_disable();
 
#ifdef __SMP__
#ifdef CONFIG_SMP
if (config.cpu_count > 1) {
/*
* Create the kmp thread and wait for its completion.
84,7 → 84,7
}
else panic("thread_create/kmp");
}
#endif /* __SMP__ */
#endif /* CONFIG_SMP */
/*
* Now that all CPUs are up, we can report what we've found.
*/
95,7 → 95,7
printf("cpu%d: not active\n", i);
}
 
#ifdef __SMP__
#ifdef CONFIG_SMP
if (config.cpu_count > 1) {
/*
* For each CPU, create its load balancing thread.
113,7 → 113,7
 
}
}
#endif /* __SMP__ */
#endif /* CONFIG_SMP */
 
interrupts_enable();
 
/SPARTAN/trunk/generic/src/main/main.c
39,10 → 39,10
#include <cpu.h>
#include <align.h>
 
#ifdef __SMP__
#ifdef CONFIG_SMP
#include <arch/smp/apic.h>
#include <arch/smp/mps.h>
#endif /* __SMP__ */
#endif /* CONFIG_SMP */
 
#include <smp/smp.h>
 
202,7 → 202,7
}
 
 
#ifdef __SMP__
#ifdef CONFIG_SMP
/** Application CPUs main kernel routine
*
* Executed by application processors, temporary stack
268,4 → 268,4
scheduler();
/* not reached */
}
#endif /* __SMP__*/
#endif /* CONFIG_SMP */