From 4a2c9229eee6e8785e0535acba1c92fc647e8b22 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sat, 3 Mar 2018 19:43:44 +0100 Subject: [PATCH] Fix warmboot vs cpu_on check --- exosphere/src/warmboot_init.c | 2 +- exosphere/src/warmboot_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exosphere/src/warmboot_init.c b/exosphere/src/warmboot_init.c index 23d5d2fde..4fdc3fc04 100644 --- a/exosphere/src/warmboot_init.c +++ b/exosphere/src/warmboot_init.c @@ -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(); } diff --git a/exosphere/src/warmboot_main.c b/exosphere/src/warmboot_main.c index b8a0147ea..cc415bfee 100644 --- a/exosphere/src/warmboot_main.c +++ b/exosphere/src/warmboot_main.c @@ -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"); */ }