xlat: Fix compatibility between v1 and v2
There are several platforms using arm_setup_page_tables(), which is
supposed to be Arm platform only. This creates several dependency
problems between platforms.

This patch adds the definition XLAT_TABLES_LIB_V2 to the xlat tables lib
v2 makefile. This way it is possible to detect from C code which version
is being used and include the correct header.

The file arm_xlat_tables.h has been renamed to xlat_tables_compat.h and
moved to a common folder. This way, when in doubt, this header can be
used to guarantee compatibility, as it includes the correct header based
on XLAT_TABLES_LIB_V2.

This patch also removes the usage of ARM_XLAT_TABLES_V1 from QEMU (so
that is now locked in xlat lib v2) and ZynqMP (where it was added as a
workaround).

Change-Id: Ie1e22a23b44c549603d1402a237a70d0120d3e04
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
1 parent 31abc7c commit 03987d01e9effe2b896e1ddb16894238d37e099a
@Antonio Nino Diaz Antonio Nino Diaz authored on 19 Oct 2018
Showing 13 changed files
View
include/lib/xlat_tables/xlat_tables_compat.h 0 → 100644
View
include/plat/arm/board/common/v2m_def.h
View
include/plat/arm/common/arm_xlat_tables.h 100644 → 0
View
include/plat/arm/common/plat_arm.h
View
lib/xlat_tables_v2/xlat_tables.mk
View
plat/arm/board/fvp/fvp_common.c
View
plat/arm/common/arm_bl1_setup.c
View
plat/arm/common/arm_bl31_setup.c
View
plat/arm/common/arm_common.c
View
plat/common/plat_bl_common.c
View
plat/qemu/platform.mk
View
plat/qemu/qemu_common.c
View
plat/xilinx/zynqmp/platform.mk