Equalize hekate main and Nyx sd based functions

This commit is contained in:
CTCaer
2020-06-13 18:32:40 +03:00
parent 7dd3178d48
commit 21548545fc
29 changed files with 167 additions and 103 deletions

View File

@@ -136,7 +136,7 @@ void panic(u32 val)
void reboot_normal()
{
sd_unmount(true);
sd_end();
reconfig_hw_workaround(false, 0);
nyx_str->mtc_cfg.init_done = 0;
@@ -146,7 +146,7 @@ void reboot_normal()
void reboot_rcm()
{
sd_unmount(true);
sd_end();
reconfig_hw_workaround(false, 0);
PMC(APBDEV_PMC_SCRATCH0) = PMC_SCRATCH0_MODE_RCM;
@@ -158,7 +158,7 @@ void reboot_rcm()
void power_off()
{
sd_unmount(true);
sd_end();
reconfig_hw_workaround(false, 0);
// Stop the alarm, in case we injected and powered off too fast.