arm-trusted-firmware/lib
Antonio Nino Diaz a5fa5658e8 xlat: Fix checks in mmap_add() and mmap_add_ctx()
Commit 79621f0038 broke sgi575.

It is possible to have a region with 0 as value for the attributes. It
means device memory, read only, secure, executable. This is legitimate
if the code is in flash and the code is executed from there.

This is the case for SGI_MAP_FLASH0_RO, defined in the file
plat/arm/css/sgi/sgi_plat.c.

This problem is solved by checking both size and attributes in xlat v1.
In xlat v2, it is enough to check the granularity, as it can never be 0.

Change-Id: I7be11f1b0e51c4c2ffd560b4a6cdfbf15de2c276
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-10-08 16:15:21 +01:00
..
aarch32 libc: armclang: Implement compiler printf symbols 2018-08-22 10:26:05 +01:00
aarch64 Remove all other deprecated interfaces and files 2018-09-28 15:31:53 +01:00
compiler-rt libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
coreboot coreboot: Add support for CBMEM console 2018-01-19 15:21:12 -08:00
cpus Fix the Cortex-ares errata reporting function name 2018-09-10 11:51:31 +01:00
el3_runtime Mark BL31 initialization functions 2018-10-03 11:47:30 +01:00
extensions Mark BL31 initialization functions 2018-10-03 11:47:30 +01:00
libc Ensure the flow through switch statements is clear 2018-09-21 13:14:13 +01:00
libfdt Create a library file for libfdt 2018-08-03 11:31:26 +01:00
locks Remove all other deprecated interfaces and files 2018-09-28 15:31:53 +01:00
optee Fixed ARM-software/tf-issues#603 2018-08-23 14:44:18 -06:00
pmf libc: Use printf and snprintf across codebase 2018-08-22 10:26:05 +01:00
psci Mark BL31 initialization functions 2018-10-03 11:47:30 +01:00
romlib Add support for romlib in the build system 2018-08-03 11:31:42 +01:00
semihosting Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
stack_protector Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
utils Fix MISRA rule 8.3 2018-07-10 11:17:51 +01:00
xlat_tables xlat: Fix checks in mmap_add() and mmap_add_ctx() 2018-10-08 16:15:21 +01:00
xlat_tables_v2 xlat: Fix checks in mmap_add() and mmap_add_ctx() 2018-10-08 16:15:21 +01:00
zlib zlib: Fix build error when LOG_LEVEL=50 2018-02-08 09:36:48 +01:00