From d5d8f869e4b0b76c7bbaf5db88b854f9ffd253fc Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sun, 2 Jul 2023 23:00:15 +0300 Subject: [PATCH] Update idle_thread.cpp --- src/core/kernel/idle_thread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/kernel/idle_thread.cpp b/src/core/kernel/idle_thread.cpp index 5389fecc..5abba373 100644 --- a/src/core/kernel/idle_thread.cpp +++ b/src/core/kernel/idle_thread.cpp @@ -59,12 +59,12 @@ void Kernel::setupIdleThread() { t.fpscr = FPSCR::ThreadDefault; // Our idle thread should have as low of a priority as possible, because, well, it's an idle thread. - // We handle this by giving it a priority of 0xff, which is lower than is actually allowed for user threads - // (High priority value = low priority) - t.priority = 0xff; + // We handle this by giving it a priority of 0x40, which is lower than is actually allowed for user threads + // (High priority value = low priority). This is the same priority used in the retail kernel. + t.priority = 0x40; t.status = ThreadStatus::Ready; // Add idle thread to the list of thread indices threadIndices.push_back(idleThreadIndex); sortThreads(); -} \ No newline at end of file +}