[Kernel] BSP launches file server before entering shared core code path
@@ -105,7 +105,6 @@ static void _kernel_bootstrap_part2(void) {
// Detect and boot other APs
smp_init();
- smp_core_continue();
// Early boot is finished
// Multitasking and program loading is now available
@@ -114,8 +113,14 @@ static void _kernel_bootstrap_part2(void) {
// specified startup programs
task_spawn__with_args("launch_fs_server", FS_SERVER_EXEC_TRAMPOLINE_NAME, 0, 0, 0);
- // Bootstrapping complete - kill this process
- printf("[t = %d] Bootstrap task [PID %d] will exit\n", time(), getpid());
- task_die(0);
- assert(0, "task_die should have stopped execution");
+ // TODO(PT): Only mask the PIT once we're sure all cores have calibrated
+ // TODO(PT): Pull the PIT IRQ line somehow
+ /*
+ uint32_t start = ms_since_boot();
+ printf("BSP spinlooping...\n");
+ while (ms_since_boot() < start + 3000) {}
+ printf("BSP will mask PIT.\n");
+ */
+
+ smp_core_continue();
}
