summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-12-04 22:15:03 -0500
committerGravatar bunnei2014-12-04 22:15:03 -0500
commit17fae11fc7cf9392bb93dd2a1dc26a479ca75ed1 (patch)
tree5106fe8f907b9d7f8f04331cee815f25f03c0d6f /src/core/hle/svc.cpp
parentMerge pull request #222 from archshift/renamexyz (diff)
parentThreads: Remove a redundant function. (diff)
downloadyuzu-17fae11fc7cf9392bb93dd2a1dc26a479ca75ed1.tar.gz
yuzu-17fae11fc7cf9392bb93dd2a1dc26a479ca75ed1.tar.xz
yuzu-17fae11fc7cf9392bb93dd2a1dc26a479ca75ed1.zip
Merge pull request #250 from Subv/cbranch_2
SVC: Implemented GetThreadId.
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 43a3cbe03..a5805ed05 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -281,10 +281,11 @@ static Result ReleaseMutex(Handle handle) {
281 return res.raw; 281 return res.raw;
282} 282}
283 283
284/// Get current thread ID 284/// Get the ID for the specified thread.
285static Result GetThreadId(u32* thread_id, Handle thread) { 285static Result GetThreadId(u32* thread_id, Handle handle) {
286 ERROR_LOG(SVC, "(UNIMPLEMENTED) called thread=0x%08X", thread); 286 DEBUG_LOG(SVC, "called thread=0x%08X", handle);
287 return 0; 287 ResultCode result = Kernel::GetThreadId(thread_id, handle);
288 return result.raw;
288} 289}
289 290
290/// Query memory 291/// Query memory