From 58036dac0bb4fea8ea2a837444ba34045ec31e69 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 3 Mar 2018 12:22:50 -0800 Subject: [PATCH] Fix coldboot init (presentations lie) --- exosphere/src/coldboot_init.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/exosphere/src/coldboot_init.c b/exosphere/src/coldboot_init.c index f0915d0cd..fe3267613 100644 --- a/exosphere/src/coldboot_init.c +++ b/exosphere/src/coldboot_init.c @@ -135,15 +135,8 @@ void coldboot_init(coldboot_crt0_reloc_list_t *reloc_list, boot_func_list_t *fun /* At this point, we can (and will) access functions located in .warm_crt0 */ translate_warmboot_func_list(reloc_list, func_list); - /* - From https://events.static.linuxfound.org/sites/events/files/slides/slides_17.pdf : - Caches may write back dirty lines at any time: - - To make space for new allocations - - Even if MMU is off - - Even if Cacheable accesses are disabled (caches are never 'off') - */ - func_list->funcs.flush_dcache_all(); - func_list->funcs.invalidate_icache_all(); + /* Initialize DMA controllers, and write to AHB_GIZMO_TZRAM. */ + /* TZRAM accesses should work normally after this point. */ func_list->funcs.init_dma_controllers(); configure_ttbls();