diff options
Diffstat (limited to 'bl2/bl2_main.c')
-rw-r--r-- | bl2/bl2_main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bl2/bl2_main.c b/bl2/bl2_main.c index fc93e1b1..514c0053 100644 --- a/bl2/bl2_main.c +++ b/bl2/bl2_main.c @@ -60,6 +60,15 @@ void bl2_main(void) /* Load the subsequent bootloader images. */ next_bl_ep_info = bl2_load_images(); +#ifdef AARCH32 + /* + * For AArch32 state BL1 and BL2 share the MMU setup. + * Given that BL2 does not map BL1 regions, MMU needs + * to be disabled in order to go back to BL1. + */ + disable_mmu_icache_secure(); +#endif /* AARCH32 */ + /* * Run next BL image via an SMC to BL1. Information on how to pass * control to the BL32 (if present) and BL33 software images will |