summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-20 23:03:45 -0400
committerGravatar bunnei2014-05-20 23:03:45 -0400
commit978e1d4653cd12a68d6bfa05af57edb1645da0f5 (patch)
tree75b5c4bbf272453cc9c37b381ef67e5746df0ea8 /src/core/hle/svc.cpp
parentsvc: added some comments (diff)
downloadyuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.gz
yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.xz
yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.zip
mutex: initial commit of HLE module
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp9
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
187/// Create a mutex 187/// Create a mutex
188Result CreateMutex(void* _mutex, u32 initial_locked) { 188Result CreateMutex(void* _mutex, u32 initial_locked) {
189 Handle* mutex = (Handle*)_mutex; 189 Handle* mutex = (Handle*)_mutex;
190 DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateMutex called initial_locked=%s", 190 DEBUG_LOG(SVC, "CreateMutex called initial_locked=%s", initial_locked ? "true" : "false");
191 initial_locked ? "true" : "false"); 191 Kernel::CreateMutex(*mutex, (bool)initial_locked);
192 Core::g_app_core->SetReg(1, 0xF00D0BAD); 192 Core::g_app_core->SetReg(1, *mutex);
193 return 0; 193 return 0;
194} 194}
195 195
196/// Release a mutex 196/// Release a mutex
197Result ReleaseMutex(Handle handle) { 197Result ReleaseMutex(Handle handle) {
198 DEBUG_LOG(SVC, "(UNIMPLEMENTED) ReleaseMutex called handle=0x%08X", handle); 198 DEBUG_LOG(SVC, "ReleaseMutex called handle=0x%08X", handle);
199 Kernel::ReleaseMutex(handle);
199 return 0; 200 return 0;
200} 201}
201 202