diff options
| author | 2018-05-05 21:59:35 -0400 | |
|---|---|---|
| committer | 2018-05-10 19:34:49 -0400 | |
| commit | 6a890023e92cc8c7c0ea6bd20df6180ab88d2bb2 (patch) | |
| tree | 1bfdbf12298404ba23ca6d45928e0dce580fb4d0 | |
| parent | wait_tree: Show all threads on all schedulers. (diff) | |
| download | yuzu-6a890023e92cc8c7c0ea6bd20df6180ab88d2bb2.tar.gz yuzu-6a890023e92cc8c7c0ea6bd20df6180ab88d2bb2.tar.xz yuzu-6a890023e92cc8c7c0ea6bd20df6180ab88d2bb2.zip | |
svc: Implement GetCurrentProcessorNumber.
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 520510b61..ec32432db 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -401,8 +401,8 @@ static ResultCode SetThreadPriority(Handle handle, u32 priority) { | |||
| 401 | 401 | ||
| 402 | /// Get which CPU core is executing the current thread | 402 | /// Get which CPU core is executing the current thread |
| 403 | static u32 GetCurrentProcessorNumber() { | 403 | static u32 GetCurrentProcessorNumber() { |
| 404 | NGLOG_WARNING(Kernel_SVC, "(STUBBED) called, defaulting to processor 0"); | 404 | NGLOG_TRACE(Kernel_SVC, "called"); |
| 405 | return 0; | 405 | return GetCurrentThread()->processor_id; |
| 406 | } | 406 | } |
| 407 | 407 | ||
| 408 | static ResultCode MapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 size, | 408 | static ResultCode MapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 size, |