summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-04-10 04:55:18 +0200
committerbunnei <bunneidev@gmail.com>2015-04-10 04:55:18 +0200
commitdb4bd98bac52283ed9bb17456d58ae4e3bc82ec9 (patch)
treefe1307919e7087df41c498b971016ffa931d6594 /src/core/hle
parentSVC: Update various SVCs to cause a reschedule. (diff)
downloadyuzu-db4bd98bac52283ed9bb17456d58ae4e3bc82ec9.tar
yuzu-db4bd98bac52283ed9bb17456d58ae4e3bc82ec9.tar.gz
yuzu-db4bd98bac52283ed9bb17456d58ae4e3bc82ec9.tar.bz2
yuzu-db4bd98bac52283ed9bb17456d58ae4e3bc82ec9.tar.lz
yuzu-db4bd98bac52283ed9bb17456d58ae4e3bc82ec9.tar.xz
yuzu-db4bd98bac52283ed9bb17456d58ae4e3bc82ec9.tar.zst
yuzu-db4bd98bac52283ed9bb17456d58ae4e3bc82ec9.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/svc.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 43b7e5cbf..76e9b171a 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -338,9 +338,15 @@ static ResultCode CreateThread(Handle* out_handle, s32 priority, u32 entry_point
ErrorSummary::InvalidArgument, ErrorLevel::Usage);
}
- if (processor_id > THREADPROCESSORID_MAX) {
- return ResultCode(ErrorDescription::OutOfRange, ErrorModule::Kernel,
- ErrorSummary::InvalidArgument, ErrorLevel::Permanent);
+ switch (processor_id) {
+ case THREADPROCESSORID_DEFAULT:
+ case THREADPROCESSORID_0:
+ case THREADPROCESSORID_1:
+ break;
+ default:
+ // TODO(bunnei): Implement support for other processor IDs
+ ASSERT_MSG(false, "Unsupported thread processor ID: %d", processor_id);
+ break;
}
CASCADE_RESULT(SharedPtr<Thread> thread, Kernel::Thread::Create(