1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-09-20 05:53:24 +01:00

Fix coldboot init (presentations lie)

This commit is contained in:
Michael Scire 2018-03-03 12:22:50 -08:00
parent a6c7a2c57e
commit 58036dac0b

View file

@ -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 */ /* At this point, we can (and will) access functions located in .warm_crt0 */
translate_warmboot_func_list(reloc_list, func_list); translate_warmboot_func_list(reloc_list, func_list);
/* /* Initialize DMA controllers, and write to AHB_GIZMO_TZRAM. */
From https://events.static.linuxfound.org/sites/events/files/slides/slides_17.pdf : /* TZRAM accesses should work normally after this point. */
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();
func_list->funcs.init_dma_controllers(); func_list->funcs.init_dma_controllers();
configure_ttbls(); configure_ttbls();