mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
boot/powctl/i2c: more miscellaneous fixes
This commit is contained in:
parent
affdea9244
commit
b62aa044e4
6 changed files with 89 additions and 57 deletions
|
@ -85,8 +85,16 @@ namespace ams::powctl::impl {
|
|||
os::WaitThread(std::addressof(g_interrupt_thread));
|
||||
os::DestroyThread(std::addressof(g_interrupt_thread));
|
||||
|
||||
/* TODO: What else? */
|
||||
AMS_ABORT();
|
||||
/* Reset all device code entries. */
|
||||
GetDeviceCodeEntryManager().Reset();
|
||||
|
||||
/* Finalize all registered drivers. */
|
||||
for (auto &driver : GetDriverList()) {
|
||||
driver.SafeCastTo<IPowerControlDriver>().FinalizeDriver();
|
||||
}
|
||||
|
||||
/* Finalize the interrupt handler manager. */
|
||||
GetInterruptHandlerManager().Finalize();
|
||||
}
|
||||
|
||||
void RegisterDriver(IPowerControlDriver *driver) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue