summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish V Badarkhe <Manish.Badarkhe@arm.com>2023-09-13 12:36:13 +0100
committerManish V Badarkhe <Manish.Badarkhe@arm.com>2023-09-13 15:02:18 +0100
commit03cf4e9aad2774ce221ccfe6f345ffcc8aabee4a (patch)
treeab9115542f7c6c0a8569d7911cc601da123b4818
parent55e37408d5348f3643957bd29e454101728154ff (diff)
fix(fvp): conditionally increase XLAT and MMAP table entries
The XLAT and MMAP table entries are increased as a part of this patch: 12fe591 , but this is causing failures for some builds, so conditionally increased the XLAT and MMAP table entries Change-Id: I31e8c811bebc767d7187e045a35c9db0eef13ae0 Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
-rw-r--r--plat/arm/board/fvp/include/platform_def.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/plat/arm/board/fvp/include/platform_def.h b/plat/arm/board/fvp/include/platform_def.h
index d9fe24fda..826fca290 100644
--- a/plat/arm/board/fvp/include/platform_def.h
+++ b/plat/arm/board/fvp/include/platform_def.h
@@ -168,8 +168,13 @@
# define MAX_XLAT_TABLES 6
# endif
#elif !USE_ROMLIB
-# define PLAT_ARM_MMAP_ENTRIES 12
-# define MAX_XLAT_TABLES 6
+# if ENABLE_RME && defined(IMAGE_BL2)
+# define PLAT_ARM_MMAP_ENTRIES 12
+# define MAX_XLAT_TABLES 6
+# else
+# define PLAT_ARM_MMAP_ENTRIES 11
+# define MAX_XLAT_TABLES 5
+# endif /* (IMAGE_BL2 && ENABLE_RME) */
#else
# define PLAT_ARM_MMAP_ENTRIES 12
# if (defined(SPD_tspd) || defined(SPD_opteed) || defined(SPD_spmd)) && \