diff options
author | bunnei <ericbunnie@gmail.com> | 2014-05-23 01:32:45 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-05-23 01:32:45 +0200 |
commit | 7c0b0060764e75738bc9d4417d0bfd510e54ae4e (patch) | |
tree | fef5fa5c699f01731d6549f22601e9d8f5d88465 /src/core/hle/svc.cpp | |
parent | kernel: refactored function naming to remove "__" prefix (diff) | |
download | yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.gz yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.bz2 yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.lz yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.xz yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.zst yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.zip |
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r-- | src/core/hle/svc.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 14d512b99..b1854a36e 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -106,10 +106,9 @@ Result CloseHandle(Handle handle) { /// Wait for a handle to synchronize, timeout after the specified nanoseconds Result WaitSynchronization1(Handle handle, s64 nano_seconds) { - // ImplementMe DEBUG_LOG(SVC, "(UNIMPLEMENTED) WaitSynchronization1 called handle=0x%08X, nanoseconds=%d", handle, nano_seconds); - Kernel::Reschedule("WaitSynchronization1"); + Kernel::WaitCurThread(WAITTYPE_SYNCH, "WaitSynchronization1"); // TODO(bunnei): Is this correct? return 0; } @@ -117,16 +116,14 @@ Result WaitSynchronization1(Handle handle, s64 nano_seconds) { Result WaitSynchronizationN(void* _out, void* _handles, u32 handle_count, u32 wait_all, s64 nano_seconds) { s32* out = (s32*)_out; Handle* handles = (Handle*)_handles; - // ImplementMe - + DEBUG_LOG(SVC, "(UNIMPLEMENTED) WaitSynchronizationN called handle_count=%d, wait_all=%s, nanoseconds=%d %s", handle_count, (wait_all ? "true" : "false"), nano_seconds); - + for (u32 i = 0; i < handle_count; i++) { DEBUG_LOG(SVC, "\thandle[%d]=0x%08X", i, handles[i]); } - Kernel::Reschedule("WaitSynchronizationN"); - + Kernel::WaitCurThread(WAITTYPE_SYNCH, "WaitSynchronizationN"); // TODO(bunnei): Is this correct? return 0; } @@ -174,7 +171,7 @@ Result CreateThread(u32 priority, u32 entry_point, u32 arg, u32 stack_top, u32 p name = buff; } - Handle thread = Kernel::CreateThread(name.c_str(), entry_point, priority, processor_id, + Handle thread = Kernel::CreateThread(name.c_str(), entry_point, priority, arg, processor_id, stack_top); Core::g_app_core->SetReg(1, thread); |