diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-20 22:42:27 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-29 06:42:26 +0100 |
commit | cdd14b03e5c8e29bc6cd11bbde0ef726d2f166ce (patch) | |
tree | 987f6cb5d3f1955dc88f5ac2c1d5c1329d787fc4 /src/core/hle/kernel/kernel.cpp | |
parent | kernel: svc_types: Add ThreadActivity. (diff) | |
download | yuzu-cdd14b03e5c8e29bc6cd11bbde0ef726d2f166ce.tar yuzu-cdd14b03e5c8e29bc6cd11bbde0ef726d2f166ce.tar.gz yuzu-cdd14b03e5c8e29bc6cd11bbde0ef726d2f166ce.tar.bz2 yuzu-cdd14b03e5c8e29bc6cd11bbde0ef726d2f166ce.tar.lz yuzu-cdd14b03e5c8e29bc6cd11bbde0ef726d2f166ce.tar.xz yuzu-cdd14b03e5c8e29bc6cd11bbde0ef726d2f166ce.tar.zst yuzu-cdd14b03e5c8e29bc6cd11bbde0ef726d2f166ce.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 39d5122f5..d61659453 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -117,14 +117,14 @@ struct KernelCore::Impl { void InitializePhysicalCores() { exclusive_monitor = Core::MakeExclusiveMonitor(system.Memory(), Core::Hardware::NUM_CPU_CORES); - for (std::size_t i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { + for (s32 i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { schedulers[i] = std::make_unique<Kernel::KScheduler>(system, i); cores.emplace_back(i, system, *schedulers[i], interrupts); } } void InitializeSchedulers() { - for (std::size_t i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { + for (s32 i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { cores[i].Scheduler().Initialize(); } } @@ -169,9 +169,9 @@ struct KernelCore::Impl { std::string name = "Suspend Thread Id:" + std::to_string(i); std::function<void(void*)> init_func = Core::CpuManager::GetSuspendThreadStartFunc(); void* init_func_parameter = system.GetCpuManager().GetStartFuncParamater(); - auto thread_res = KThread::Create(system, ThreadType::Kernel, std::move(name), 0, 0, 0, - static_cast<u32>(i), 0, nullptr, std::move(init_func), - init_func_parameter); + auto thread_res = KThread::Create(system, ThreadType::HighPriority, std::move(name), 0, + 0, 0, static_cast<u32>(i), 0, nullptr, + std::move(init_func), init_func_parameter); suspend_threads[i] = std::move(thread_res).Unwrap(); } |