SMP - The slave CPUs turn paging on

- APs wait until BSP turns paging on, it is not possible to safely
  execute any code on APs until we can turn paging on as well as it
  must be done synchronously everywhere

- APs turn paging on but do not continue and wait
This commit is contained in:
Tomas Hruby
2010-09-15 14:10:07 +00:00
parent 6aa26565e6
commit 85cca7096f
4 changed files with 15 additions and 2 deletions
+7 -1
View File
@@ -285,8 +285,14 @@ PUBLIC int main(void)
} else if (config_no_smp) {
BOOT_VERBOSE(printf("SMP disabled, using legacy PIC\n"));
smp_single_cpu_fallback();
} else
} else {
smp_init();
/*
* if smp_init() returns it means that it failed and we try to finish
* single CPU booting
*/
bsp_finish_booting();
}
#else
/*
* if configured for a single CPU, we are already on the kernel stack which we