spd: trusty: memmap trusty's code memory before peeking
authorVarun Wadekar <vwadekar@nvidia.com>
Thu, 3 Jan 2019 18:44:22 +0000 (10:44 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Tue, 5 Feb 2019 16:27:43 +0000 (08:27 -0800)
commit15440c528004915a79f62e6a6da30e10c49673a4
treeb04f71f245a0e0b178d5d7420d84f886d2feda16
parent500fc9e10b3d49a5108d8775c0e47d9666d83c57
spd: trusty: memmap trusty's code memory before peeking

This patch dynamically maps the first page of trusty's code memory,
before accessing it to find out if we are running a 32-bit or 64-bit
image.

On Tegra platforms, this means we have to increase the mappings to
accomodate the new memmap entry.

Change-Id: If370d1e6cfcccd69b260134c1b462d8d17bee03d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/soc/t186/platform_t186.mk
plat/nvidia/tegra/soc/t210/platform_t210.mk
services/spd/trusty/trusty.c