summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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"},