From 5b7f86708cd72b5d42b16ba4a0cc348dc83129d1 Mon Sep 17 00:00:00 2001 From: Subv Date: Sun, 17 Apr 2016 14:01:40 -0500 Subject: Kernel/Threading: Warn when a thread can be scheduled in the Syscore (Core 1). We do not currently implement any cores other than the AppCore (Core 0). --- src/core/loader/ncch.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/loader/ncch.cpp') diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index a4b47ef8c..52c5fbaaf 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(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 kernel_caps; std::copy_n(exheader_header.arm11_kernel_caps.descriptors, kernel_caps.size(), begin(kernel_caps)); -- cgit v1.2.3