summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2018-05-05 21:59:35 -0400
committerGravatar bunnei2018-05-10 19:34:49 -0400
commit6a890023e92cc8c7c0ea6bd20df6180ab88d2bb2 (patch)
tree1bfdbf12298404ba23ca6d45928e0dce580fb4d0
parentwait_tree: Show all threads on all schedulers. (diff)
downloadyuzu-6a890023e92cc8c7c0ea6bd20df6180ab88d2bb2.tar.gz
yuzu-6a890023e92cc8c7c0ea6bd20df6180ab88d2bb2.tar.xz
yuzu-6a890023e92cc8c7c0ea6bd20df6180ab88d2bb2.zip
svc: Implement GetCurrentProcessorNumber.
-rw-r--r--src/core/hle/kernel/svc.cpp4
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
403static u32 GetCurrentProcessorNumber() { 403static 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
408static ResultCode MapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 size, 408static ResultCode MapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 size,