summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-12-31 22:01:04 +0100
committerbunnei <bunneidev@gmail.com>2017-12-31 22:01:04 +0100
commit283c63645d2d957e9d8adf86a55d728eb8539988 (patch)
tree9612e86051e475ad127e8bb412722f10728b836e /src/core
parenterrors: Define missing kernel error codes. (diff)
downloadyuzu-283c63645d2d957e9d8adf86a55d728eb8539988.tar
yuzu-283c63645d2d957e9d8adf86a55d728eb8539988.tar.gz
yuzu-283c63645d2d957e9d8adf86a55d728eb8539988.tar.bz2
yuzu-283c63645d2d957e9d8adf86a55d728eb8539988.tar.lz
yuzu-283c63645d2d957e9d8adf86a55d728eb8539988.tar.xz
yuzu-283c63645d2d957e9d8adf86a55d728eb8539988.tar.zst
yuzu-283c63645d2d957e9d8adf86a55d728eb8539988.zip
Diffstat (limited to 'src/core')
-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) {
return RESULT_SUCCESS;
}
+/// Get which CPU core is executing the current thread
+static u32 GetCurrentProcessorNumber() {
+ LOG_WARNING(Kernel_SVC, "(STUBBED) called, defaulting to processor 0");
+ return 0;
+}
+
/// Query process memory
static ResultCode QueryProcessMemory(MemoryInfo* memory_info, PageInfo* /*page_info*/,
Kernel::Handle process_handle, u64 addr) {
@@ -289,7 +295,7 @@ static const FunctionDef SVC_Table[] = {
{0x0D, HLE::Wrap<SetThreadPriority>, "svcSetThreadPriority"},
{0x0E, nullptr, "svcGetThreadCoreMask"},
{0x0F, nullptr, "svcSetThreadCoreMask"},
- {0x10, nullptr, "svcGetCurrentProcessorNumber"},
+ {0x10, HLE::Wrap<GetCurrentProcessorNumber>, "svcGetCurrentProcessorNumber"},
{0x11, nullptr, "svcSignalEvent"},
{0x12, nullptr, "svcClearEvent"},
{0x13, nullptr, "svcMapSharedMemory"},