From 69a2003a8e904399a84ec9d9573d77cdccb359d2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 15 Apr 2019 20:17:15 -0400 Subject: kernel/thread: Update thread processor ID flags Adds the missing flags to the enum and documents them. --- src/core/hle/kernel/svc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle/kernel/svc.cpp') diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index e5d4d6b55..bb12f9ac7 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -1776,7 +1776,7 @@ static ResultCode SetThreadCoreMask(Core::System& system, Handle thread_handle, if (core == OnlyChangeMask) { core = thread->GetIdealCore(); - } else if (core >= Core::NUM_CPU_CORES && core != static_cast(-1)) { + } else if (core >= Core::NUM_CPU_CORES && core != static_cast(THREADPROCESSORID_DONT_UPDATE)) { LOG_ERROR(Kernel_SVC, "Invalid core specified, got {}", core); return ERR_INVALID_PROCESSOR_ID; } -- cgit v1.2.3