summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_thread.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-01-03 10:49:18 +0100
committerbunnei <bunneidev@gmail.com>2021-01-29 06:42:25 +0100
commit4dbf3f4880cac69db21cc8f18582814dc986c854 (patch)
tree16bd5c45c3341e3341d3581e830dbc9f5067784d /src/core/hle/kernel/k_thread.cpp
parenthle: kernel: KThread: Reorganize thread priority defaults. (diff)
downloadyuzu-4dbf3f4880cac69db21cc8f18582814dc986c854.tar
yuzu-4dbf3f4880cac69db21cc8f18582814dc986c854.tar.gz
yuzu-4dbf3f4880cac69db21cc8f18582814dc986c854.tar.bz2
yuzu-4dbf3f4880cac69db21cc8f18582814dc986c854.tar.lz
yuzu-4dbf3f4880cac69db21cc8f18582814dc986c854.tar.xz
yuzu-4dbf3f4880cac69db21cc8f18582814dc986c854.tar.zst
yuzu-4dbf3f4880cac69db21cc8f18582814dc986c854.zip
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r--src/core/hle/kernel/k_thread.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index 518c5d5df..e5be849bb 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -127,14 +127,6 @@ ResultVal<std::shared_ptr<KThread>> KThread::Create(Core::System& system, Thread
void* thread_start_parameter) {
auto& kernel = system.Kernel();
- R_UNLESS(Svc::HighestThreadPriority <= priority && priority <= Svc::LowestThreadPriority,
- Svc::ResultInvalidPriority);
-
- if (processor_id > THREADPROCESSORID_MAX) {
- LOG_ERROR(Kernel_SVC, "Invalid processor id: {}", processor_id);
- return ERR_INVALID_PROCESSOR_ID;
- }
-
if (owner_process) {
if (!system.Memory().IsValidVirtualAddress(*owner_process, entry_point)) {
LOG_ERROR(Kernel_SVC, "(name={}): invalid entry {:016X}", name, entry_point);
@@ -423,7 +415,7 @@ ResultCode KThread::SetCoreAndAffinityMask(s32 new_core, u64 new_affinity_mask)
};
const bool use_override = affinity_override_count != 0;
- if (new_core == THREADPROCESSORID_DONT_UPDATE) {
+ if (new_core == Svc::IdealCoreNoUpdate) {
new_core = use_override ? ideal_core_override : ideal_core;
if ((new_affinity_mask & (1ULL << new_core)) == 0) {
LOG_ERROR(Kernel, "New affinity mask is incorrect! new_core={}, new_affinity_mask={}",