aboutsummaryrefslogtreecommitdiff
path: root/plat/ti/k3
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2019-04-25 13:52:54 -0400
committerAndrew F. Davis <afd@ti.com>2019-04-26 11:45:50 -0400
commit6475237412f685b5515555a0afae83b47241c3c8 (patch)
treea2188e0e2034235ae503567e280a863e075c6406 /plat/ti/k3
parent282514cff332090852e52bc7c56fdea53c1f7218 (diff)
downloadtrusted-firmware-a-6475237412f685b5515555a0afae83b47241c3c8.tar.gz
ti: k3: common: Fix RO data area size calculation
The size of the RO data area was calculated by subtracting the area end address from itself and not the base address due to a typo. Fix this here. Note, this was noticed at a glance thanks to the new aligned formating of this table. Signed-off-by: Andrew F. Davis <afd@ti.com> Change-Id: I994022ac9fc95dc5e37a420714da76081c61cce7
Diffstat (limited to 'plat/ti/k3')
-rw-r--r--plat/ti/k3/common/k3_bl31_setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/ti/k3/common/k3_bl31_setup.c b/plat/ti/k3/common/k3_bl31_setup.c
index b4ec37458b..b3843a4d36 100644
--- a/plat/ti/k3/common/k3_bl31_setup.c
+++ b/plat/ti/k3/common/k3_bl31_setup.c
@@ -101,7 +101,7 @@ void bl31_plat_arch_setup(void)
const mmap_region_t bl_regions[] = {
MAP_REGION_FLAT(BL31_START, BL31_END - BL31_START, MT_MEMORY | MT_RW | MT_SECURE),
MAP_REGION_FLAT(BL_CODE_BASE, BL_CODE_END - BL_CODE_BASE, MT_CODE | MT_RO | MT_SECURE),
- MAP_REGION_FLAT(BL_RO_DATA_BASE, BL_RO_DATA_END - BL_RO_DATA_END, MT_RO_DATA | MT_RO | MT_SECURE),
+ MAP_REGION_FLAT(BL_RO_DATA_BASE, BL_RO_DATA_END - BL_RO_DATA_BASE, MT_RO_DATA | MT_RO | MT_SECURE),
{ /* sentinel */ }
};