summaryrefslogtreecommitdiff
path: root/bl2
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2022-03-31 14:42:11 +0200
committerYann Gautier <yann.gautier@st.com>2022-03-31 14:52:04 +0200
commitcc562e74101d800b0b0ee3422fb7f4f8321ae2b7 (patch)
tree6f8c1b423dd9fff956d5c52a976a9070176a9b37 /bl2
parentf78cb61a11da3d965be809ebf8b592a8c33f6473 (diff)
fix(bl2): define RAM_NOLOAD for XIP
If BL2_IN_XIP_MEM is enabled, BL2 fails to compile because RAM_NOLOAD symbol is not defined. As we could have a no-load region even if BL2_IN_XIP_MEM is enabled, just put its definition outside the #if/#else for this flag. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I9169ea799635f8a72790280f3f148d1cba4cd408
Diffstat (limited to 'bl2')
-rw-r--r--bl2/bl2_el3.ld.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/bl2/bl2_el3.ld.S b/bl2/bl2_el3.ld.S
index 6aa7afd61..c95706ce8 100644
--- a/bl2/bl2_el3.ld.S
+++ b/bl2/bl2_el3.ld.S
@@ -17,12 +17,12 @@ MEMORY {
RAM (rwx): ORIGIN = BL2_RW_BASE, LENGTH = BL2_RW_LIMIT - BL2_RW_BASE
#else
RAM (rwx): ORIGIN = BL2_BASE, LENGTH = BL2_LIMIT - BL2_BASE
+#endif
#if SEPARATE_BL2_NOLOAD_REGION
RAM_NOLOAD (rw!a): ORIGIN = BL2_NOLOAD_START, LENGTH = BL2_NOLOAD_LIMIT - BL2_NOLOAD_START
#else
#define RAM_NOLOAD RAM
#endif
-#endif
}
#if !BL2_IN_XIP_MEM