From 9e8608e8b17c35c2407e1febeedfbbdebc97768a Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 1 Jan 2018 14:47:57 -0500 Subject: svc: Stub out svcWaitSynchronization. - This does not matter until we implement other kernel objects, mutexes use svcLockMutex for waiting. --- src/core/hle/svc.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/core/hle/svc.cpp') diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 1ba61d807..584294fc5 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -125,6 +125,14 @@ static ResultCode GetProcessId(u32* process_id, Kernel::Handle process_handle) { return RESULT_SUCCESS; } +/// Wait for the given handles to synchronize, timeout after the specified nanoseconds +static ResultCode WaitSynchronization(VAddr handles_address, u64 handle_count, s64 nano_seconds) { + LOG_WARNING(Kernel_SVC, + "(STUBBED) called handles_address=0x%llx, handle_count=%d, nano_seconds=%d", + handles_address, handle_count, nano_seconds); + return RESULT_SUCCESS; +} + /// Attempts to locks a mutex, creating it if it does not already exist static ResultCode LockMutex(Handle holding_thread_handle, VAddr mutex_addr, Handle requesting_thread_handle) { @@ -452,7 +460,7 @@ static const FunctionDef SVC_Table[] = { {0x15, nullptr, "svcCreateTransferMemory"}, {0x16, HLE::Wrap, "svcCloseHandle"}, {0x17, nullptr, "svcResetSignal"}, - {0x18, nullptr, "svcWaitSynchronization"}, + {0x18, HLE::Wrap, "svcWaitSynchronization"}, {0x19, nullptr, "svcCancelSynchronization"}, {0x1A, HLE::Wrap, "svcLockMutex"}, {0x1B, HLE::Wrap, "svcUnlockMutex"}, -- cgit v1.2.3