summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/kernel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 825fab694..5ebd47e49 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -102,7 +102,7 @@ struct KernelCore::Impl {
102 next_user_process_id = KProcess::ProcessIDMin; 102 next_user_process_id = KProcess::ProcessIDMin;
103 next_thread_id = 1; 103 next_thread_id = 1;
104 104
105 for (s32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) { 105 for (u32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
106 if (suspend_threads[core_id]) { 106 if (suspend_threads[core_id]) {
107 suspend_threads[core_id]->Close(); 107 suspend_threads[core_id]->Close();
108 suspend_threads[core_id] = nullptr; 108 suspend_threads[core_id] = nullptr;
@@ -211,7 +211,7 @@ struct KernelCore::Impl {
211 } 211 }
212 212
213 void InitializeSuspendThreads() { 213 void InitializeSuspendThreads() {
214 for (s32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) { 214 for (u32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
215 suspend_threads[core_id] = KThread::Create(system.Kernel()); 215 suspend_threads[core_id] = KThread::Create(system.Kernel());
216 ASSERT(KThread::InitializeHighPriorityThread(system, suspend_threads[core_id], {}, {}, 216 ASSERT(KThread::InitializeHighPriorityThread(system, suspend_threads[core_id], {}, {},
217 core_id) 217 core_id)
@@ -953,7 +953,7 @@ void KernelCore::Suspend(bool in_suspention) {
953 { 953 {
954 KScopedSchedulerLock lock(*this); 954 KScopedSchedulerLock lock(*this);
955 const auto state = should_suspend ? ThreadState::Runnable : ThreadState::Waiting; 955 const auto state = should_suspend ? ThreadState::Runnable : ThreadState::Waiting;
956 for (s32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) { 956 for (u32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
957 impl->suspend_threads[core_id]->SetState(state); 957 impl->suspend_threads[core_id]->SetState(state);
958 impl->suspend_threads[core_id]->SetWaitReasonForDebugging( 958 impl->suspend_threads[core_id]->SetWaitReasonForDebugging(
959 ThreadWaitReasonForDebugging::Suspended); 959 ThreadWaitReasonForDebugging::Suspended);