summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-04-02 23:50:17 -0400
committerGravatar bunnei2018-04-02 23:51:01 -0400
commit40bccd74d3336e69112694b2d0e42683efcd4367 (patch)
treec7a28e58e2b7cba62faa6e6989dc240f28f021c9 /src/core/hle/kernel/svc.cpp
parentaudren_u: Stub out GetActiveAudioDeviceName. (diff)
downloadyuzu-40bccd74d3336e69112694b2d0e42683efcd4367.tar.gz
yuzu-40bccd74d3336e69112694b2d0e42683efcd4367.tar.xz
yuzu-40bccd74d3336e69112694b2d0e42683efcd4367.zip
svc: Stub out SetThreadActivity, GetThreadContext.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 171bbd956..36ea23cd9 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -371,6 +371,18 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id)
371 return RESULT_SUCCESS; 371 return RESULT_SUCCESS;
372} 372}
373 373
374/// Sets the thread activity
375static ResultCode SetThreadActivity(Handle handle, u32 unknown) {
376 LOG_WARNING(Kernel_SVC, "(STUBBED) called, handle=0x%08X, unknown=0x%08X", handle, unknown);
377 return RESULT_SUCCESS;
378}
379
380/// Gets the thread context
381static ResultCode GetThreadContext(Handle handle, VAddr addr) {
382 LOG_WARNING(Kernel_SVC, "(STUBBED) called, handle=0x%08X, addr=0x%" PRIx64, handle, addr);
383 return RESULT_SUCCESS;
384}
385
374/// Gets the priority for the specified thread 386/// Gets the priority for the specified thread
375static ResultCode GetThreadPriority(u32* priority, Handle handle) { 387static ResultCode GetThreadPriority(u32* priority, Handle handle) {
376 const SharedPtr<Thread> thread = g_handle_table.Get<Thread>(handle); 388 const SharedPtr<Thread> thread = g_handle_table.Get<Thread>(handle);
@@ -853,8 +865,8 @@ static const FunctionDef SVC_Table[] = {
853 {0x2F, nullptr, "GetLastThreadInfo"}, 865 {0x2F, nullptr, "GetLastThreadInfo"},
854 {0x30, nullptr, "GetResourceLimitLimitValue"}, 866 {0x30, nullptr, "GetResourceLimitLimitValue"},
855 {0x31, nullptr, "GetResourceLimitCurrentValue"}, 867 {0x31, nullptr, "GetResourceLimitCurrentValue"},
856 {0x32, nullptr, "SetThreadActivity"}, 868 {0x32, SvcWrap<SetThreadActivity>, "SetThreadActivity"},
857 {0x33, nullptr, "GetThreadContext"}, 869 {0x33, SvcWrap<GetThreadContext>, "GetThreadContext"},
858 {0x34, nullptr, "Unknown"}, 870 {0x34, nullptr, "Unknown"},
859 {0x35, nullptr, "Unknown"}, 871 {0x35, nullptr, "Unknown"},
860 {0x36, nullptr, "Unknown"}, 872 {0x36, nullptr, "Unknown"},