Fix warmboot vs cpu_on check

This commit is contained in:
TuxSH 2018-03-03 19:43:44 +01:00
parent 03c1ad7119
commit 4a2c9229ee
2 changed files with 2 additions and 2 deletions

View file

@ -143,7 +143,7 @@ void warmboot_init(boot_func_list_t *func_list) {
func_list->funcs.invalidate_icache_all();
/* On warmboot (not cpu_on) only */
if (MC_SECURITY_CFG0_0 != 0) {
if (MC_SECURITY_CFG3_0 == 0) {
init_dma_controllers();
}

View file

@ -26,7 +26,7 @@ void __attribute__((noreturn)) warmboot_main(void) {
identity_unmap_iram_cd_tzram();
/* On warmboot (not cpu_on) only */
if (MC_SECURITY_CFG0_0 != 0) {
if (MC_SECURITY_CFG3_0 == 0) {
if (!configitem_is_retail()) {
/* TODO: uart_log("OHAYO"); */
}