mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-01 08:05:46 +00:00
refactor(arm): update BL2 base address
BL2 base address updated to provide enough space for BL31 in Trusted SRAM when building with BL2_AT_EL3 and ENABLE_PIE options. Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> Change-Id: Ieaba00d841648add855feb99b7923a4b0cccfb08
This commit is contained in:
parent
76398c02a6
commit
69a131d894
1 changed files with 12 additions and 1 deletions
|
@ -520,9 +520,20 @@
|
||||||
* BL2 specific defines.
|
* BL2 specific defines.
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
#if BL2_AT_EL3
|
#if BL2_AT_EL3
|
||||||
|
#if ENABLE_PIE
|
||||||
|
/*
|
||||||
|
* As the BL31 image size appears to be increased when built with the ENABLE_PIE
|
||||||
|
* option, set BL2 base address to have enough space for BL31 in Trusted SRAM.
|
||||||
|
*/
|
||||||
|
#define BL2_BASE (ARM_TRUSTED_SRAM_BASE + \
|
||||||
|
(PLAT_ARM_TRUSTED_SRAM_SIZE >> 1) + \
|
||||||
|
0x3000)
|
||||||
|
#else
|
||||||
/* Put BL2 towards the middle of the Trusted SRAM */
|
/* Put BL2 towards the middle of the Trusted SRAM */
|
||||||
#define BL2_BASE (ARM_TRUSTED_SRAM_BASE + \
|
#define BL2_BASE (ARM_TRUSTED_SRAM_BASE + \
|
||||||
(PLAT_ARM_TRUSTED_SRAM_SIZE >> 1) + 0x2000)
|
(PLAT_ARM_TRUSTED_SRAM_SIZE >> 1) + \
|
||||||
|
0x2000)
|
||||||
|
#endif /* ENABLE_PIE */
|
||||||
#define BL2_LIMIT (ARM_BL_RAM_BASE + ARM_BL_RAM_SIZE)
|
#define BL2_LIMIT (ARM_BL_RAM_BASE + ARM_BL_RAM_SIZE)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue