[main] Add brick protection for RCM patched units

- If AutoRCM was found enabled, force disable it.
 (In case of chainloading.)
- Additionally disable AutoRCM function.
This commit is contained in:
ctcaer@gmail.com
2019-04-16 20:09:04 +03:00
parent ed047ef5f5
commit c80fecd080
6 changed files with 92 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ void set_default_configuration()
h_cfg.errors = 0;
h_cfg.autonogc = 1;
h_cfg.sept_run = EMC(EMC_SCRATCH0) & EMC_SEPT_RUN;
h_cfg.rcm_patched = true;
}
int create_config_entry()

View File

@@ -30,10 +30,11 @@ typedef struct _hekate_config
u32 autohosoff;
u32 autonogc;
// Global temporary config.
int se_keygen_done;
bool se_keygen_done;
u32 sbar_time_keeping;
u32 errors;
int sept_run;
bool rcm_patched;
} hekate_config;
typedef enum