Add API to return memory map on ARM platforms
authorVikram Kanigiri <vikram.kanigiri@arm.com>
Thu, 12 Nov 2015 18:52:34 +0000 (18:52 +0000)
committerVikram Kanigiri <vikram.kanigiri@arm.com>
Mon, 15 Feb 2016 10:20:16 +0000 (10:20 +0000)
commit65cb1c4c285c0701217ee53d1b6b4a1f68ccbd35
treee9d27453780422e8bf76e2997cea3cd2e857c6a4
parent421295a017d6c2378376a14cc13b5076129d347b
Add API to return memory map on ARM platforms

Functions to configure the MMU in S-EL1 and EL3 on ARM platforms
expect each platform to export its memory map in the `plat_arm_mmap`
data structure. This approach does not scale well in case the memory
map cannot be determined until runtime. To cater for this possibility,
this patch introduces the plat_arm_get_mmap() API. It returns a
reference to the `plat_arm_mmap` by default but can be overridden
by a platform if required.

Change-Id: Idae6ad8fdf40cdddcd8b992abc188455fa047c74
include/plat/arm/common/plat_arm.h
plat/arm/common/aarch64/arm_common.c