]> git.baikalelectronics.ru Git - arm-tf.git/commit
Tegra: common: fixup the bl31 code size to be copied at reset
authoranzhou <anzhou@nvidia.com>
Tue, 4 Aug 2020 14:05:19 +0000 (22:05 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 31 Aug 2020 18:21:17 +0000 (11:21 -0700)
commita565d16cd17090e30b6632e9ca56481def0b6395
treeb1cc46a8a603f087f723f2f98e50abb86ff08daa
parentc23f5e1cb920bbf6d623a6f91719eb98a5292e52
Tegra: common: fixup the bl31 code size to be copied at reset

If the CPU doesn't run from BL31_BASE, the firmware needs to be
copied from load address to BL31_BASE during cold boot. The size
should be the actual size of the code, which is indicated by the
__RELA_END__ linker variable.

This patch updates the copy routine to use this variable as a
result.

Signed-off-by: anzhou <anzhou@nvidia.com>
Change-Id: Ie3a48dd54cda1dc152204903d609da3117a0ced9
plat/nvidia/tegra/common/aarch64/tegra_helpers.S