Add missing support for BL2_AT_EL3 in XIP memory
authorLionel Debieve <lionel.debieve@st.com>
Mon, 27 May 2019 07:32:00 +0000 (09:32 +0200)
committerLionel Debieve <lionel.debieve@st.com>
Wed, 2 Oct 2019 07:06:39 +0000 (09:06 +0200)
Add the missing flag for aarch32 XIP memory mode. It was
previously added in aarch64 only.
Minor: Correct the aarch64 missing flag.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Change-Id: Iac0a7581a1fd580aececa75f97deb894858f776f

include/arch/aarch32/el3_common_macros.S
include/arch/aarch64/el3_common_macros.S

index c62d7d772d58f55ab6c78e071b8b692675faf0ab..7559de446606d2addc795821c86a3e3fb370a3d6 100644 (file)
                bl      zeromem
 #endif
 
-#ifdef IMAGE_BL1
+#if defined(IMAGE_BL1) || (defined(IMAGE_BL2) && BL2_AT_EL3 && BL2_IN_XIP_MEM)
                /* -----------------------------------------------------
                 * Copy data from ROM to RAM.
                 * -----------------------------------------------------
index 53396d44b6285f425c0f1b6e4a6bbfd09e831864..ee20d5b2dcb05df231aa6b2e231eaa847d5e7bbe 100644 (file)
                bl      zeromem
 #endif
 
-#if defined(IMAGE_BL1) || (defined(IMAGE_BL2) && BL2_IN_XIP_MEM)
+#if defined(IMAGE_BL1) || (defined(IMAGE_BL2) && BL2_AT_EL3 && BL2_IN_XIP_MEM)
                adrp    x0, __DATA_RAM_START__
                add     x0, x0, :lo12:__DATA_RAM_START__
                adrp    x1, __DATA_ROM_START__