arm-trusted-firmware/lib
Daniel Boulby 79621f0038 xlat: Change check in mmap_add and mmap_add_ctx()
Depending on the build flags it is possible that some of the memory
regions mapped in page table setup could have a size of 0. In this
case we simply want to do nothing but still wish to map the other
regions in the array. Therefore we cannot only use size == 0 as
the termination logic for the loop.

Since an attributes field with value 0 means that the region is
device memory, read only, secure and executable. Device memory
can't be executable, so this combination should never be used
and it is safe to use as a terminator value.

Therefore by changing the termination logic to use attributes
instead of size we prevent terminating the loop when we don't
intend to.

Change-Id: I92fc7f689ab08543497be6be4896dace2ed7b66a
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03 11:47:30 +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 context_mgmt: Fix HANDLE_EA_EL3_FIRST implementation 2018-08-29 17:16:20 -07:00
extensions RAS: Fix assert condition 2018-09-07 16:37:06 +01:00
libc libc: Fix some MISRA defects 2018-08-30 16:21:59 +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 Remove all other deprecated interfaces and files 2018-09-28 15:31:53 +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: Change check in mmap_add and mmap_add_ctx() 2018-10-03 11:47:30 +01:00
xlat_tables_v2 xlat: Change check in mmap_add and mmap_add_ctx() 2018-10-03 11:47:30 +01:00
zlib zlib: Fix build error when LOG_LEVEL=50 2018-02-08 09:36:48 +01:00