BL2_AT_EL3: do not try to disable MMU twice on AARCH32
authorYann Gautier <yann.gautier@st.com>
Thu, 26 Apr 2018 17:07:17 +0000 (19:07 +0200)
committerYann Gautier <yann.gautier@st.com>
Thu, 26 Apr 2018 17:07:34 +0000 (19:07 +0200)
commit01a1f7c2bc12b7fcb5cbb70c4091b0ac9ce79d4a
tree27bd2793014e7bba839ce8768e1dc47e7ec41850
parenta8d9550b527107b85703d7b4e93073e653ae95f7
BL2_AT_EL3: do not try to disable MMU twice on AARCH32

If BL2_AT_EL3 is enabled, bl2_run_next_image is called at the end of BL2.
This function calls disable_mmu_icache_secure.
It is then useless to call it in bl2_main in that case.

fixes arm-software/tf-issues#582

Signed-off-by: Yann Gautier <yann.gautier@st.com>
bl2/bl2_main.c