arm-trusted-firmware/lib/xlat_tables
Nishanth Menon 7055e6fa32 xlat lib: Don't set mmap_attr_t enum to be -1
-1 is not a defined mmap_attr_t type. Instead of using invalid enum
types, we can either choose to define a INVALID type OR handle the
condition specifically.

Since the usage of mmap_region_attr is limited, it is easier to just
handle the error condition specifically and return 0 or -1 depending
on success or fail.

Fixes: ARM-Software/tf-issues#473
Fixes: 28fa2e9ee8 ("xlat lib: Use mmap_attr_t type consistently")

Signed-off-by: Nishanth Menon <nm@ti.com>
2017-05-02 07:05:42 -05:00
..
aarch32 Control inclusion of helper code used for asserts 2017-04-20 09:59:12 +01:00
aarch64 Control inclusion of helper code used for asserts 2017-04-20 09:59:12 +01:00
xlat_tables_common.c xlat lib: Don't set mmap_attr_t enum to be -1 2017-05-02 07:05:42 -05:00
xlat_tables_private.h Forbid block descriptors in initial xlat table levels 2016-12-13 15:38:19 +00:00