summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2018-01-01 14:47:57 -0500
committerGravatar bunnei2018-01-01 14:47:57 -0500
commit9e8608e8b17c35c2407e1febeedfbbdebc97768a (patch)
tree23a07bfdb0b334c033d58bc41d4bfac720cdcece
parentsvc: Implement svcExitProcess. (diff)
downloadyuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.tar.gz
yuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.tar.xz
yuzu-9e8608e8b17c35c2407e1febeedfbbdebc97768a.zip
svc: Stub out svcWaitSynchronization.
- This does not matter until we implement other kernel objects, mutexes use svcLockMutex for waiting.
-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) {
125 return RESULT_SUCCESS; 125 return RESULT_SUCCESS;
126} 126}
127 127
128/// Wait for the given handles to synchronize, timeout after the specified nanoseconds
129static ResultCode WaitSynchronization(VAddr handles_address, u64 handle_count, s64 nano_seconds) {
130 LOG_WARNING(Kernel_SVC,
131 "(STUBBED) called handles_address=0x%llx, handle_count=%d, nano_seconds=%d",
132 handles_address, handle_count, nano_seconds);
133 return RESULT_SUCCESS;
134}
135
128/// Attempts to locks a mutex, creating it if it does not already exist 136/// Attempts to locks a mutex, creating it if it does not already exist
129static ResultCode LockMutex(Handle holding_thread_handle, VAddr mutex_addr, 137static ResultCode LockMutex(Handle holding_thread_handle, VAddr mutex_addr,
130 Handle requesting_thread_handle) { 138 Handle requesting_thread_handle) {
@@ -452,7 +460,7 @@ static const FunctionDef SVC_Table[] = {
452 {0x15, nullptr, "svcCreateTransferMemory"}, 460 {0x15, nullptr, "svcCreateTransferMemory"},
453 {0x16, HLE::Wrap<CloseHandle>, "svcCloseHandle"}, 461 {0x16, HLE::Wrap<CloseHandle>, "svcCloseHandle"},
454 {0x17, nullptr, "svcResetSignal"}, 462 {0x17, nullptr, "svcResetSignal"},
455 {0x18, nullptr, "svcWaitSynchronization"}, 463 {0x18, HLE::Wrap<WaitSynchronization>, "svcWaitSynchronization"},
456 {0x19, nullptr, "svcCancelSynchronization"}, 464 {0x19, nullptr, "svcCancelSynchronization"},
457 {0x1A, HLE::Wrap<LockMutex>, "svcLockMutex"}, 465 {0x1A, HLE::Wrap<LockMutex>, "svcLockMutex"},
458 {0x1B, HLE::Wrap<UnlockMutex>, "svcUnlockMutex"}, 466 {0x1B, HLE::Wrap<UnlockMutex>, "svcUnlockMutex"},