diff options
author | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2019-11-18 16:45:03 +0000 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2019-11-18 16:45:03 +0000 |
commit | 896add4f1df44eb7e1125a572849811684651f83 (patch) | |
tree | 990cfadf6224f561ec8056bba5529962b5b61478 /docs | |
parent | 0d20514ec5e37ed96eea487bb2fbcdab8ae32dbb (diff) | |
parent | 4685b64fc34b3fd23c5d942aeac87fe1ece744e1 (diff) | |
download | platform_external_arm-trusted-firmware-896add4f1df44eb7e1125a572849811684651f83.tar.gz platform_external_arm-trusted-firmware-896add4f1df44eb7e1125a572849811684651f83.tar.bz2 platform_external_arm-trusted-firmware-896add4f1df44eb7e1125a572849811684651f83.zip |
Merge changes from topic "lm/improve_memory_layout" into integration
* changes:
DOC: Update ROMLIB page with memory impact info
ROMLIB: Optimize memory layout when ROMLIB is used
Diffstat (limited to 'docs')
-rw-r--r-- | docs/components/romlib-design.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/components/romlib-design.rst b/docs/components/romlib-design.rst index d8bc89cea..e0a028e46 100644 --- a/docs/components/romlib-design.rst +++ b/docs/components/romlib-design.rst @@ -111,6 +111,21 @@ The calling sequence for a patched function is as follows: BL image --> function +Memory impact +~~~~~~~~~~~~~ + +Using library at ROM will modify the memory layout of the BL images: +- The ROM library needs a page aligned RAM section to hold the RW data. This + section is defined by the ROMLIB_RW_BASE and ROMLIB_RW_END macros. + On Arm platforms a section of 1 page (0x1000) is allocated at the top of SRAM. + This will have for effect to shift down all the BL images by 1 page. +- Depending on the functions moved to the ROM library, the size of the BL images + will be reduced. + For example: moving MbedTLS function into the ROM library reduces BL1 and + BL2, but not BL31. +- This change in BL images size can be taken into consideration to optimize the + memory layout when defining the BLx_BASE macros. + Build library at ROM ~~~~~~~~~~~~~~~~~~~~~ |