namespace
| 52 | } |
| 53 | } // namespace |
| 54 | Result Initialize() |
| 55 | { |
| 56 | R_TRY(pscmGetPmModule(&pscModule, PscPmModuleId(126), dependencies, sizeof(dependencies) / sizeof(uint32_t), true)); |
| 57 | pscModuleWaiter = waiterForEvent(&pscModule.event); |
| 58 | is_psc_thread_running = true; |
| 59 | R_ABORT_UNLESS(threadCreate(&g_psc_thread, &PscThreadFunc, nullptr, psc_thread_stack, sizeof(psc_thread_stack), 0x2C, -2)); |
| 60 | R_ABORT_UNLESS(threadStart(&g_psc_thread)); |
| 61 | return 0; |
| 62 | } |
| 63 | |
| 64 | void Exit() |
| 65 | { |