arm-trusted-firmware/lib/xlat_tables_v2
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 xlat v2: Support the EL2 translation regime 2018-08-10 13:47:11 +01:00
aarch64 libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
xlat_tables.mk xlat v2: Remove architectural headers 2018-07-13 14:02:43 +01:00
xlat_tables_context.c Mark xlat tables initialization code 2018-10-03 11:48:15 +01:00
xlat_tables_core.c xlat: Fix checks in mmap_add() and mmap_add_ctx() 2018-10-08 16:15:21 +01:00
xlat_tables_private.h xlat v2: Flush xlat tables after being modified 2018-08-07 12:47:12 +01:00
xlat_tables_utils.c libc: Use printf and snprintf across codebase 2018-08-22 10:26:05 +01:00