kernel: fix some uses of disable_count

This commit is contained in:
Liam 2022-06-15 20:53:49 -04:00
parent 1d8e860c47
commit 6d5cc6b2a2
4 changed files with 7 additions and 14 deletions

View file

@ -829,6 +829,7 @@ void KScheduler::Initialize() {
idle_thread = KThread::Create(system.Kernel());
ASSERT(KThread::InitializeIdleThread(system, idle_thread, core_id).IsSuccess());
idle_thread->SetName(fmt::format("IdleThread:{}", core_id));
idle_thread->EnableDispatch();
}
KScopedSchedulerLock::KScopedSchedulerLock(KernelCore& kernel)