GSP/DSP: Named some interrupt signals.

This commit is contained in:
bunnei 2015-02-16 20:50:59 -05:00 committed by Darius Goad
parent b3288c4cf9
commit a5b33e352b
2 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,8 @@ static void RegisterInterruptEvents(Service::Interface* self) {
auto evt = Kernel::g_handle_table.Get<Kernel::Event>(cmd_buff[4]); auto evt = Kernel::g_handle_table.Get<Kernel::Event>(cmd_buff[4]);
if (evt != nullptr) { if (evt != nullptr) {
interrupt_event = evt; interrupt_event = evt;
interrupt_event->name = "DSP_DSP::interrupt_event";
cmd_buff[1] = 0; // No error cmd_buff[1] = 0; // No error
} else { } else {
LOG_ERROR(Service_DSP, "called with invalid handle=%08X", cmd_buff[4]); LOG_ERROR(Service_DSP, "called with invalid handle=%08X", cmd_buff[4]);

View File

@ -271,6 +271,7 @@ static void RegisterInterruptRelayQueue(Service::Interface* self) {
u32 flags = cmd_buff[1]; u32 flags = cmd_buff[1];
g_interrupt_event = Kernel::g_handle_table.Get<Kernel::Event>(cmd_buff[3]); g_interrupt_event = Kernel::g_handle_table.Get<Kernel::Event>(cmd_buff[3]);
g_interrupt_event->name = "GSP_GPU::interrupt_event";
ASSERT_MSG((g_interrupt_event != nullptr), "handle is not valid!"); ASSERT_MSG((g_interrupt_event != nullptr), "handle is not valid!");
g_shared_memory = Kernel::SharedMemory::Create("GSPSharedMem"); g_shared_memory = Kernel::SharedMemory::Create("GSPSharedMem");