summaryrefslogtreecommitdiff
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorGravatar bunnei2014-06-02 20:38:34 -0400
committerGravatar bunnei2014-06-02 20:38:34 -0400
commitb78aff85857a3a356fdf11e1dbc4e5f52490676e (patch)
tree0cb0b9855ae2eed179fb1401e3edbcbd7d59f6f3 /src/core/hle/service
parentkernel: moved position of * for GetTypeName and GetName (diff)
downloadyuzu-b78aff85857a3a356fdf11e1dbc4e5f52490676e.tar.gz
yuzu-b78aff85857a3a356fdf11e1dbc4e5f52490676e.tar.xz
yuzu-b78aff85857a3a356fdf11e1dbc4e5f52490676e.zip
svc: added optional name field to Event and Mutex (used for debugging)
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/apt.cpp6
-rw-r--r--src/core/hle/service/srv.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp
index 10d9a94bd..33ee1ec8f 100644
--- a/src/core/hle/service/apt.cpp
+++ b/src/core/hle/service/apt.cpp
@@ -19,8 +19,8 @@ void Initialize(Service::Interface* self) {
19 u32* cmd_buff = Service::GetCommandBuffer(); 19 u32* cmd_buff = Service::GetCommandBuffer();
20 DEBUG_LOG(KERNEL, "called"); 20 DEBUG_LOG(KERNEL, "called");
21 21
22 cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT menu event handle 22 cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT, "APT_U:Menu"); // APT menu event handle
23 cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT pause event handle 23 cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT, "APT_U:Pause"); // APT pause event handle
24 24
25 Kernel::SetEventLocked(cmd_buff[3], true); 25 Kernel::SetEventLocked(cmd_buff[3], true);
26 Kernel::SetEventLocked(cmd_buff[4], false); // Fire start event 26 Kernel::SetEventLocked(cmd_buff[4], false); // Fire start event
@@ -32,7 +32,7 @@ void GetLockHandle(Service::Interface* self) {
32 u32* cmd_buff = Service::GetCommandBuffer(); 32 u32* cmd_buff = Service::GetCommandBuffer();
33 u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field 33 u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field
34 cmd_buff[1] = 0; // No error 34 cmd_buff[1] = 0; // No error
35 cmd_buff[5] = Kernel::CreateMutex(false); 35 cmd_buff[5] = Kernel::CreateMutex(false, "APT_U:Lock");
36 DEBUG_LOG(KERNEL, "called handle=0x%08X", cmd_buff[5]); 36 DEBUG_LOG(KERNEL, "called handle=0x%08X", cmd_buff[5]);
37} 37}
38 38
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp
index f1940e6f5..07e2009a0 100644
--- a/src/core/hle/service/srv.cpp
+++ b/src/core/hle/service/srv.cpp
@@ -17,7 +17,7 @@ Handle g_mutex = 0;
17void Initialize(Service::Interface* self) { 17void Initialize(Service::Interface* self) {
18 DEBUG_LOG(OSHLE, "called"); 18 DEBUG_LOG(OSHLE, "called");
19 if (!g_mutex) { 19 if (!g_mutex) {
20 g_mutex = Kernel::CreateMutex(false); 20 g_mutex = Kernel::CreateMutex(true, "SRV:Lock");
21 } 21 }
22} 22}
23 23