diff options
| author | bunnei <bunneidev@gmail.com> | 2016-05-08 15:03:08 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2016-05-08 15:03:08 -0400 |
| commit | fe04d0f1cc61a635493e78a159b2671be0f48399 (patch) | |
| tree | 1adb819b34340de4395ada46ac6b089cdf121b4a /src/core/loader/ncch.cpp | |
| parent | 18ac292259695d396756c4403e6c54e836761ee8 (diff) | |
| parent | bfee7941e391f947b04346d4c70f727695c8207f (diff) | |
Merge pull request #1766 from Subv/log_cpu
Kernel/Threading: Warn when a thread can be scheduled in the Syscore (Core 1)
Diffstat (limited to 'src/core/loader/ncch.cpp')
| -rw-r--r-- | src/core/loader/ncch.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index d362a4419a..7391bdb268 100644 --- a/src/core/loader/ncch.cpp +++ b/src/core/loader/ncch.cpp @@ -156,6 +156,9 @@ ResultStatus AppLoader_NCCH::LoadExec() { Kernel::g_current_process->resource_limit = Kernel::ResourceLimit::GetForCategory( static_cast<Kernel::ResourceLimitCategory>(exheader_header.arm11_system_local_caps.resource_limit_category)); + // Set the default CPU core for this process + Kernel::g_current_process->ideal_processor = exheader_header.arm11_system_local_caps.ideal_processor; + // Copy data while converting endianess std::array<u32, ARRAY_SIZE(exheader_header.arm11_kernel_caps.descriptors)> kernel_caps; std::copy_n(exheader_header.arm11_kernel_caps.descriptors, kernel_caps.size(), begin(kernel_caps)); |
