arm-trusted-firmware/lib/xlat_tables_v2
Antonio Nino Diaz 96abc22b94 xlat v2: Correctly unmap regions on map error
`mm_cursor` doesn't have the needed data because the `memmove()` that
is called right before it overwrites that information. In order to get
the information of the region that was being mapped, `mm` has to be used
instead (like it is done to fill the fields of `unmap_mm`).

If the incorrect information is read, this check isn't reliable and
`xlat_tables_unmap_region` may be requested to unmap memory that isn't
mapped at all, triggering assertions.

Change-Id: I602d4ac83095d4e5dac9deb34aa5d00d00e6c289
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-01-10 15:39:37 +00:00
..
aarch32 ARMv7 may not support large page addressing 2017-11-08 13:53:47 +01:00
aarch64 Add ARMv8.2 ID_AA64MMFR0_EL1.PARange value 2017-11-17 09:52:53 +00:00
xlat_tables.mk xlat: Add support for EL0 and EL1 mappings 2017-10-05 14:32:12 +01:00
xlat_tables_internal.c xlat v2: Correctly unmap regions on map error 2018-01-10 15:39:37 +00:00
xlat_tables_private.h xlat: Add support for EL0 and EL1 mappings 2017-10-05 14:32:12 +01:00