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/hle/svc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/hle/svc.cpp') diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index ae54afb1c..761e1b45b 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -497,6 +497,11 @@ static ResultCode CreateThread(Handle* out_handle, s32 priority, u32 entry_point break; } + if (processor_id == THREADPROCESSORID_1 || processor_id == THREADPROCESSORID_ALL || + (processor_id == THREADPROCESSORID_DEFAULT && Kernel::g_current_process->ideal_processor == THREADPROCESSORID_1)) { + LOG_WARNING(Kernel_SVC, "Newly created thread is allowed to be run in the SysCore, unimplemented."); + } + CASCADE_RESULT(SharedPtr thread, Kernel::Thread::Create( name, entry_point, priority, arg, processor_id, stack_top)); CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(thread))); -- cgit v1.2.3