mirror of
https://review.haiku-os.org/haiku
synced 2025-02-23 22:18:13 +01:00
* We started the "main2" thread too late. Since the scheduler was already started on all CPUs, the idle thread could wait (for a mutex) while spawing the "main2" thread. This violated the assumption in the scheduler that all idle threads would always be ready or running. We now create the thread while the kernel runs still single-threaded. * scheduler_start() is now invoked with interrupts still disabled. We enable them after the function returns. This prevents scheduler_reschedule() from potentially being invoked before scheduler_start(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29914 a95241bf-73f2-0310-859d-f6bbb57e9c96