Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 458 → Rev 457

/SPARTAN/trunk/generic/src/cpu/cpu.c
49,9 → 49,9
void cpu_init(void) {
int i, j;
#ifdef CONFIG_SMP
#ifdef __SMP__
if (config.cpu_active == 1) {
#endif /* CONFIG_SMP */
#endif /* __SMP__ */
cpus = (cpu_t *) malloc(sizeof(cpu_t) * config.cpu_count);
if (!cpus)
panic("malloc/cpus");
66,7 → 66,7
cpus[i].id = i;
#ifdef CONFIG_SMP
#ifdef __SMP__
waitq_initialize(&cpus[i].kcpulb_wq);
#endif /* __SMP */
75,9 → 75,9
}
}
#ifdef CONFIG_SMP
#ifdef __SMP__
}
#endif /* CONFIG_SMP */
#endif /* __SMP__ */
 
CPU = &cpus[config.cpu_active-1];