summaryrefslogtreecommitdiffstats
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-01 20:47:57 +0100
committerbunnei <bunneidev@gmail.com>2018-01-01 20:47:57 +0100
commit9e8608e8b17c35c2407e1febeedfbbdebc97768a (patch)
tree23a07bfdb0b334c033d58bc41d4bfac720cdcece /src/core/hle/svc.cpp
parentsvc: Implement svcExitProcess. (diff)
downloadyuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.tar
yuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.tar.gz
yuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.tar.bz2
yuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.tar.lz
yuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.tar.xz
yuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.tar.zst
yuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.zip
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp10
1 files changed, 9 insertions, 1 deletions
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<CloseHandle>, "svcCloseHandle"},
{0x17, nullptr, "svcResetSignal"},
- {0x18, nullptr, "svcWaitSynchronization"},
+ {0x18, HLE::Wrap<WaitSynchronization>, "svcWaitSynchronization"},
{0x19, nullptr, "svcCancelSynchronization"},
{0x1A, HLE::Wrap<LockMutex>, "svcLockMutex"},
{0x1B, HLE::Wrap<UnlockMutex>, "svcUnlockMutex"},