summaryrefslogtreecommitdiff
path: root/lib/xlat_tables_v2
diff options
context:
space:
mode:
authorSayanta Pattanayak <sayanta.pattanayak@arm.com>2021-03-06 11:43:06 +0530
committerMarc Bonnici <marc.bonnici@arm.com>2022-04-13 09:44:52 +0100
commit70d986ddbbf56a20c7550c079dd4dc9462332594 (patch)
treeddeb62dddc44ead73286fbd8308055462e727c36 /lib/xlat_tables_v2
parent1d63ae4d0d8374a732113565be90d58861506e39 (diff)
downloadarm-trusted-firmware-70d986ddbbf56a20c7550c079dd4dc9462332594.tar.gz
feat(spmc): prevent read only xlat tables with the EL3 SPMC
If using the EL3 SPMC ensure that we don't mark the translation tables as read only. The SPMC requires the ability to map and unmap a partitions RX/TX buffers at runtime. Signed-off-by: Sayanta Pattanayak <sayanta.pattanayak@arm.com> Signed-off-by: Marc Bonnici <marc.bonnici@arm.com> Change-Id: Ibb78a6a2e3847ce4ec74ce81a9bb61ce34fec24c
Diffstat (limited to 'lib/xlat_tables_v2')
-rw-r--r--lib/xlat_tables_v2/ro_xlat_tables.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/xlat_tables_v2/ro_xlat_tables.mk b/lib/xlat_tables_v2/ro_xlat_tables.mk
index 7991e1afd..fb8a426bf 100644
--- a/lib/xlat_tables_v2/ro_xlat_tables.mk
+++ b/lib/xlat_tables_v2/ro_xlat_tables.mk
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2020, ARM Limited. All rights reserved.
+# Copyright (c) 2020-2022, ARM Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -34,4 +34,8 @@ else # if AArch64
attributes, which is not possible once the translation tables \
have been made read-only.")
endif
+ ifeq (${SPMC_AT_EL3},1)
+ $(error "EL3 SPMC requires functionality from the dynamic translation \
+ library and is incompatible with ALLOW_RO_XLAT_TABLES.")
+ endif
endif