svc: added optional name field to Event and Mutex (used for debugging)
This commit is contained in:
parent
8c0f02a70c
commit
b78aff8585
6 changed files with 25 additions and 12 deletions
|
@ -19,8 +19,8 @@ void Initialize(Service::Interface* self) {
|
|||
u32* cmd_buff = Service::GetCommandBuffer();
|
||||
DEBUG_LOG(KERNEL, "called");
|
||||
|
||||
cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT menu event handle
|
||||
cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT pause event handle
|
||||
cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT, "APT_U:Menu"); // APT menu event handle
|
||||
cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT, "APT_U:Pause"); // APT pause event handle
|
||||
|
||||
Kernel::SetEventLocked(cmd_buff[3], true);
|
||||
Kernel::SetEventLocked(cmd_buff[4], false); // Fire start event
|
||||
|
@ -32,7 +32,7 @@ void GetLockHandle(Service::Interface* self) {
|
|||
u32* cmd_buff = Service::GetCommandBuffer();
|
||||
u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field
|
||||
cmd_buff[1] = 0; // No error
|
||||
cmd_buff[5] = Kernel::CreateMutex(false);
|
||||
cmd_buff[5] = Kernel::CreateMutex(false, "APT_U:Lock");
|
||||
DEBUG_LOG(KERNEL, "called handle=0x%08X", cmd_buff[5]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue