diff options
| author | 2018-02-22 17:28:15 +0300 | |
|---|---|---|
| committer | 2018-02-22 17:28:15 +0300 | |
| commit | e4f94ee30bce782eb9a02cd988a9325a9f97e0d6 (patch) | |
| tree | 9aff20e8bc3f135eb4df6275347ec5ec43923d7d /src/core/hle/kernel/svc.cpp | |
| parent | Stub am::SetScreenShotPermission, and bsd::StartMonitoring functions (diff) | |
| download | yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.gz yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.xz yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.zip | |
Stub more functions
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -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 | |||
| 761 | return RESULT_SUCCESS; | 761 | return RESULT_SUCCESS; |
| 762 | } | 762 | } |
| 763 | 763 | ||
| 764 | static 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 | |||
| 764 | namespace { | 774 | namespace { |
| 765 | struct FunctionDef { | 775 | struct 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"}, |