arm-trusted-firmware/include/lib/xlat_tables
Antonio Nino Diaz 3a1b7b108a xlat: Remove mmap_attr_t enum type
The values defined in this type are used in logical operations, which
goes against MISRA Rule 10.1: "Operands shall not be of an inappropriate
essential type".

Now, `unsigned int` is used instead. This also allows us to move the
dynamic mapping bit from 30 to 31. It was an undefined behaviour in the
past because an enum is signed by default, and bit 31 corresponds to the
sign bit. It is undefined behaviour to modify the sign bit. Now, bit 31
is free to use as it was originally meant to be.

mmap_attr_t is now defined as an `unsigned int` for backwards
compatibility.

Change-Id: I6b31218c14b9c7fdabebe432de7fae6e90a97f34
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-06-22 08:36:21 +01:00
..
aarch32 Fix MISRA Rule 5.3 Part 2 2018-06-12 13:21:36 +01:00
aarch64 Fix MISRA Rule 5.3 Part 2 2018-06-12 13:21:36 +01:00
xlat_mmu_helpers.h xlat v2: Introduce xlat granule size helpers 2018-06-13 09:19:41 +01:00
xlat_tables.h xlat: Remove mmap_attr_t enum type 2018-06-22 08:36:21 +01:00
xlat_tables_arch.h xlat: Fix warning in CHECK_VIRT_ADDR_SPACE_SIZE 2018-05-09 11:36:10 +01:00
xlat_tables_defs.h xlat: Set AP[1] to 1 when it is RES1 2018-04-26 12:59:08 +01:00
xlat_tables_v2.h xlat: Remove mmap_attr_t enum type 2018-06-22 08:36:21 +01:00
xlat_tables_v2_helpers.h bl2-el3: Add BL2_EL3 image 2018-01-18 09:42:35 +00:00