diff options
author | bunnei <ericbunnie@gmail.com> | 2014-05-21 05:03:45 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-05-21 05:03:45 +0200 |
commit | 978e1d4653cd12a68d6bfa05af57edb1645da0f5 (patch) | |
tree | 75b5c4bbf272453cc9c37b381ef67e5746df0ea8 /src/core/hle/svc.cpp | |
parent | svc: added some comments (diff) | |
download | yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.gz yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.bz2 yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.lz yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.xz yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.zst yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/svc.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 3674a08c5..73ab073f5 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -187,15 +187,16 @@ Result CreateThread(void* thread, u32 priority, u32 entry_point, u32 arg, u32 st /// Create a mutex Result CreateMutex(void* _mutex, u32 initial_locked) { Handle* mutex = (Handle*)_mutex; - DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateMutex called initial_locked=%s", - initial_locked ? "true" : "false"); - Core::g_app_core->SetReg(1, 0xF00D0BAD); + DEBUG_LOG(SVC, "CreateMutex called initial_locked=%s", initial_locked ? "true" : "false"); + Kernel::CreateMutex(*mutex, (bool)initial_locked); + Core::g_app_core->SetReg(1, *mutex); return 0; } /// Release a mutex Result ReleaseMutex(Handle handle) { - DEBUG_LOG(SVC, "(UNIMPLEMENTED) ReleaseMutex called handle=0x%08X", handle); + DEBUG_LOG(SVC, "ReleaseMutex called handle=0x%08X", handle); + Kernel::ReleaseMutex(handle); return 0; } |