Rework page table setup for varying number of mem regions
authorDaniel Boulby <daniel.boulby@arm.com>
Fri, 6 Jul 2018 15:54:44 +0000 (16:54 +0100)
committerDaniel Boulby <daniel.boulby@arm.com>
Tue, 24 Jul 2018 14:01:57 +0000 (15:01 +0100)
commitd323af9e3d903d981b42f954844a95a6bfef91ab
treec13cc99f901b38bf7092a99e124c24ea1ec233ba
parenta0934217c96bcf9e0816d24f19d660463b827490
Rework page table setup for varying number of mem regions

Change arm_setup_page_tables() to take a variable number of memory
regions. Remove coherent memory region from BL1, BL2 and BL2U as
their coherent memory region doesn't contain anything and
therefore has a size of 0. Add check to ensure this
doesn't change without us knowing.

Change-Id: I790054e3b20b056dda1043a4a67bd7ac2d6a3bc0
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
16 files changed:
include/plat/arm/common/arm_def.h
include/plat/arm/common/plat_arm.h
include/plat/arm/css/common/css_def.h
plat/arm/board/common/board_css_common.c
plat/arm/board/juno/include/platform_def.h
plat/arm/common/arm_bl1_setup.c
plat/arm/common/arm_bl2_el3_setup.c
plat/arm/common/arm_bl2_setup.c
plat/arm/common/arm_bl2u_setup.c
plat/arm/common/arm_bl31_setup.c
plat/arm/common/arm_common.c
plat/arm/common/sp_min/arm_sp_min_setup.c
plat/arm/common/tsp/arm_tsp_setup.c
plat/ti/k3/common/k3_bl31_setup.c
plat/xilinx/zynqmp/bl31_zynqmp_setup.c
plat/xilinx/zynqmp/tsp/tsp_plat_setup.c