diff options
| author | 2014-12-03 23:22:06 -0500 | |
|---|---|---|
| committer | 2014-12-04 00:25:35 -0500 | |
| commit | 029ff9f1fd013ec46f3d61510c5f95f05bca698e (patch) | |
| tree | 17177b27e64fa60c0c1847ba02e8ae187f0eebad /src/core/hle/svc.cpp | |
| parent | Merge pull request #236 from rohit-n/sign-compare (diff) | |
| download | yuzu-029ff9f1fd013ec46f3d61510c5f95f05bca698e.tar.gz yuzu-029ff9f1fd013ec46f3d61510c5f95f05bca698e.tar.xz yuzu-029ff9f1fd013ec46f3d61510c5f95f05bca698e.zip | |
SVC: Implemented GetThreadId.
For now threads are using their Handle value as their Id, it should not really cause any problems because Handle values are unique in Citra, but it should be changed. I left a ToDo there because this is not correct behavior as per hardware.
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 9 |
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. |
| 285 | static Result GetThreadId(u32* thread_id, Handle thread) { | 285 | static 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 |