diff options
author | mailwl <mailwl@gmail.com> | 2018-02-22 15:28:15 +0100 |
---|---|---|
committer | mailwl <mailwl@gmail.com> | 2018-02-22 15:28:15 +0100 |
commit | e4f94ee30bce782eb9a02cd988a9325a9f97e0d6 (patch) | |
tree | 9aff20e8bc3f135eb4df6275347ec5ec43923d7d /src/core/hle/kernel | |
parent | Stub am::SetScreenShotPermission, and bsd::StartMonitoring functions (diff) | |
download | yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.gz yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.bz2 yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.lz yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.xz yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.zst yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 12 |
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 return RESULT_SUCCESS; } +static ResultCode ClearEvent(Handle handle) { + LOG_TRACE(Kernel_SVC, "called, event=0xX", handle); + + SharedPtr<Event> evt = g_handle_table.Get<Event>(handle); + if (evt == nullptr) + return ERR_INVALID_HANDLE; + evt->Clear(); + return RESULT_SUCCESS; +} + namespace { struct FunctionDef { using Func = void(); @@ -790,7 +800,7 @@ static const FunctionDef SVC_Table[] = { {0x0F, SvcWrap<SetThreadCoreMask>, "SetThreadCoreMask"}, {0x10, SvcWrap<GetCurrentProcessorNumber>, "GetCurrentProcessorNumber"}, {0x11, nullptr, "SignalEvent"}, - {0x12, nullptr, "ClearEvent"}, + {0x12, SvcWrap<ClearEvent>, "ClearEvent"}, {0x13, SvcWrap<MapSharedMemory>, "MapSharedMemory"}, {0x14, nullptr, "UnmapSharedMemory"}, {0x15, SvcWrap<CreateTransferMemory>, "CreateTransferMemory"}, |