summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-23 21:09:56 -0800
committerGravatar GitHub2018-02-23 21:09:56 -0800
commitc45173c9a64d9f2e4430ee5f2463a1db8351c722 (patch)
tree16c49a79d6d8408fb36266fe63d0bf00ec6af25d /src/core/hle/kernel/svc.cpp
parentMerge pull request #217 from shinyquagsire23/time-s-missing (diff)
parentStub more functions (diff)
downloadyuzu-c45173c9a64d9f2e4430ee5f2463a1db8351c722.tar.gz
yuzu-c45173c9a64d9f2e4430ee5f2463a1db8351c722.tar.xz
yuzu-c45173c9a64d9f2e4430ee5f2463a1db8351c722.zip
Merge pull request #212 from mailwl/stubs
Stub some functions
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index cbd5b69aa..533787ce2 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -761,6 +761,16 @@ static ResultCode CreateSharedMemory(Handle* handle, u64 size, u32 local_permiss
761 return RESULT_SUCCESS; 761 return RESULT_SUCCESS;
762} 762}
763 763
764static ResultCode ClearEvent(Handle handle) {
765 LOG_TRACE(Kernel_SVC, "called, event=0xX", handle);
766
767 SharedPtr<Event> evt = g_handle_table.Get<Event>(handle);
768 if (evt == nullptr)
769 return ERR_INVALID_HANDLE;
770 evt->Clear();
771 return RESULT_SUCCESS;
772}
773
764namespace { 774namespace {
765struct FunctionDef { 775struct FunctionDef {
766 using Func = void(); 776 using Func = void();
@@ -790,7 +800,7 @@ static const FunctionDef SVC_Table[] = {
790 {0x0F, SvcWrap<SetThreadCoreMask>, "SetThreadCoreMask"}, 800 {0x0F, SvcWrap<SetThreadCoreMask>, "SetThreadCoreMask"},
791 {0x10, SvcWrap<GetCurrentProcessorNumber>, "GetCurrentProcessorNumber"}, 801 {0x10, SvcWrap<GetCurrentProcessorNumber>, "GetCurrentProcessorNumber"},
792 {0x11, nullptr, "SignalEvent"}, 802 {0x11, nullptr, "SignalEvent"},
793 {0x12, nullptr, "ClearEvent"}, 803 {0x12, SvcWrap<ClearEvent>, "ClearEvent"},
794 {0x13, SvcWrap<MapSharedMemory>, "MapSharedMemory"}, 804 {0x13, SvcWrap<MapSharedMemory>, "MapSharedMemory"},
795 {0x14, nullptr, "UnmapSharedMemory"}, 805 {0x14, nullptr, "UnmapSharedMemory"},
796 {0x15, SvcWrap<CreateTransferMemory>, "CreateTransferMemory"}, 806 {0x15, SvcWrap<CreateTransferMemory>, "CreateTransferMemory"},