arm-trusted-firmware/lib/xlat_tables
Antonio Nino Diaz d3d6c6e3e9 Assert correct granularity when mapping a PA
Each translation table level entry can only map a given virtual
address onto physical addresses of the same granularity. For example,
with the current configuration, a level 2 entry maps blocks of 2 MB,
so the physical address must be aligned to 2 MB. If the address is not
aligned, the MMU will just ignore the lower bits.

This patch adds an assertion to make sure that physical addresses are
always aligned to the correct boundary.

Change-Id: I0ab43df71829d45cdbe323301b3053e08ca99c2c
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2016-12-13 15:35:15 +00:00
..
aarch32 Automatically select initial xlation lookup level 2016-08-23 10:51:44 +01:00
aarch64 Automatically select initial xlation lookup level 2016-08-23 10:51:44 +01:00
xlat_tables_common.c Assert correct granularity when mapping a PA 2016-12-13 15:35:15 +00:00
xlat_tables_private.h Automatically select initial xlation lookup level 2016-08-23 10:51:44 +01:00