diff options
Diffstat (limited to 'Kernel/Arch/init.cpp')
-rw-r--r-- | Kernel/Arch/init.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Kernel/Arch/init.cpp b/Kernel/Arch/init.cpp index f11a61a4dd..6b2d785af1 100644 --- a/Kernel/Arch/init.cpp +++ b/Kernel/Arch/init.cpp @@ -420,6 +420,10 @@ void init_stage2(void*) g_init_pid = init_process->pid(); init_thread->set_priority(THREAD_PRIORITY_HIGH); + NetworkTask::spawn(); + + // NOTE: All kernel processes must be created before enabling boot profiling. + // This is so profiling_enable() can emit process created performance events for them. if (boot_profiling) { dbgln("Starting full system boot profiling"); MutexLocker mutex_locker(Process::current().big_lock()); @@ -428,8 +432,6 @@ void init_stage2(void*) VERIFY(!result.is_error()); } - NetworkTask::spawn(); - Process::current().sys$exit(0); VERIFY_NOT_REACHED(); } |