summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2017-12-31 16:01:04 -0500
committerGravatar bunnei2017-12-31 16:01:04 -0500
commit283c63645d2d957e9d8adf86a55d728eb8539988 (patch)
tree9612e86051e475ad127e8bb412722f10728b836e /src
parenterrors: Define missing kernel error codes. (diff)
downloadyuzu-283c63645d2d957e9d8adf86a55d728eb8539988.tar.gz
yuzu-283c63645d2d957e9d8adf86a55d728eb8539988.tar.xz
yuzu-283c63645d2d957e9d8adf86a55d728eb8539988.zip
svc: Stub out svcGetCurrentProcessorNumber.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/svc.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index fdd90196b..fd33a5971 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -184,6 +184,12 @@ static ResultCode SetThreadPriority(Handle handle, u32 priority) {
184 return RESULT_SUCCESS; 184 return RESULT_SUCCESS;
185} 185}
186 186
187/// Get which CPU core is executing the current thread
188static u32 GetCurrentProcessorNumber() {
189 LOG_WARNING(Kernel_SVC, "(STUBBED) called, defaulting to processor 0");
190 return 0;
191}
192
187/// Query process memory 193/// Query process memory
188static ResultCode QueryProcessMemory(MemoryInfo* memory_info, PageInfo* /*page_info*/, 194static ResultCode QueryProcessMemory(MemoryInfo* memory_info, PageInfo* /*page_info*/,
189 Kernel::Handle process_handle, u64 addr) { 195 Kernel::Handle process_handle, u64 addr) {
@@ -289,7 +295,7 @@ static const FunctionDef SVC_Table[] = {
289 {0x0D, HLE::Wrap<SetThreadPriority>, "svcSetThreadPriority"}, 295 {0x0D, HLE::Wrap<SetThreadPriority>, "svcSetThreadPriority"},
290 {0x0E, nullptr, "svcGetThreadCoreMask"}, 296 {0x0E, nullptr, "svcGetThreadCoreMask"},
291 {0x0F, nullptr, "svcSetThreadCoreMask"}, 297 {0x0F, nullptr, "svcSetThreadCoreMask"},
292 {0x10, nullptr, "svcGetCurrentProcessorNumber"}, 298 {0x10, HLE::Wrap<GetCurrentProcessorNumber>, "svcGetCurrentProcessorNumber"},
293 {0x11, nullptr, "svcSignalEvent"}, 299 {0x11, nullptr, "svcSignalEvent"},
294 {0x12, nullptr, "svcClearEvent"}, 300 {0x12, nullptr, "svcClearEvent"},
295 {0x13, nullptr, "svcMapSharedMemory"}, 301 {0x13, nullptr, "svcMapSharedMemory"},