Fixes issue with uncart freezing when starting up

-There seemed to have been a problem with caching and uncart, at least
under a9lh and with one system. Explicitly disabling the mpu before
setting it up and before calling subroutines related to setting it up
appears to have fixed the problem.
This commit is contained in:
Gabriel Marcano 2016-06-20 23:22:30 -04:00
parent 1577f365f6
commit aff25d2834

View File

@ -105,6 +105,10 @@ _setup_heap:
_init: _init:
push {r0-r12, lr} push {r0-r12, lr}
mrc p15, 0, r4, c1, c0, 0
bic r4, r4, #(1<<0) @ mpu disable
mcr p15, 0, r4, c1, c0, 0
bl _enable_caches bl _enable_caches
bl _fix_sdmc_mount bl _fix_sdmc_mount