summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-02 08:24:51 +0200
committerbunnei <bunneidev@gmail.com>2021-05-06 01:40:54 +0200
commitda22def511ab164d4d33a4d4e83a9ccf65a8b47d (patch)
treee6f77d776a73b78ef54f31c7da68a75b3ebbfd6f /src
parentfixup! hle: kernel: Add initial impl. of slab setup. (diff)
downloadyuzu-da22def511ab164d4d33a4d4e83a9ccf65a8b47d.tar
yuzu-da22def511ab164d4d33a4d4e83a9ccf65a8b47d.tar.gz
yuzu-da22def511ab164d4d33a4d4e83a9ccf65a8b47d.tar.bz2
yuzu-da22def511ab164d4d33a4d4e83a9ccf65a8b47d.tar.lz
yuzu-da22def511ab164d4d33a4d4e83a9ccf65a8b47d.tar.xz
yuzu-da22def511ab164d4d33a4d4e83a9ccf65a8b47d.tar.zst
yuzu-da22def511ab164d4d33a4d4e83a9ccf65a8b47d.zip
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 {
next_user_process_id = KProcess::ProcessIDMin;
next_thread_id = 1;
- for (s32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
+ for (u32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
if (suspend_threads[core_id]) {
suspend_threads[core_id]->Close();
suspend_threads[core_id] = nullptr;
@@ -211,7 +211,7 @@ struct KernelCore::Impl {
}
void InitializeSuspendThreads() {
- for (s32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
+ for (u32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
suspend_threads[core_id] = KThread::Create(system.Kernel());
ASSERT(KThread::InitializeHighPriorityThread(system, suspend_threads[core_id], {}, {},
core_id)
@@ -953,7 +953,7 @@ void KernelCore::Suspend(bool in_suspention) {
{
KScopedSchedulerLock lock(*this);
const auto state = should_suspend ? ThreadState::Runnable : ThreadState::Waiting;
- for (s32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
+ for (u32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
impl->suspend_threads[core_id]->SetState(state);
impl->suspend_threads[core_id]->SetWaitReasonForDebugging(
ThreadWaitReasonForDebugging::Suspended);