fix instruction address range limitation
For the adr instruction, it require the label's offset from the
address of this instruction must be in the range +/-1MB. If the
option "BL2_IN_XIP_MEM" is set to '1', in some cases, BL2's RW
memory will not in the range of +/-1MB from BL2's RO memory region.
so we need to use ldr instruction to cover this case.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
1 parent 7d173fc commit b4ad9768448f63a9be9216d93a6717d22b2fee2e
@Jiafei Pan Jiafei Pan authored on 27 Mar 2018
Showing 1 changed file
View
include/common/aarch64/el3_common_macros.S