diff options
author | Harrison Mutai <harrison.mutai@arm.com> | 2023-04-19 09:30:15 +0100 |
---|---|---|
committer | Harrison Mutai <harrison.mutai@arm.com> | 2023-05-12 14:38:22 +0100 |
commit | fcb72e16ce901b0a379cc26abc6396be7a18279e (patch) | |
tree | b14c54ea0e7655bb834c11be0dd8606dd6ae27f5 | |
parent | 9b5498a721f68d1e5cad397fc0d84303dbac1557 (diff) |
build(bl32): add symbols for memory layout
Add symbols for mapping the physical memory layout of BL32. There are
symbols that partially satisfy this requirement, however, the naming of
these is inconsistent.
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
Change-Id: I106187f93b227d604bda650892f9e919047b3fc7
-rw-r--r-- | bl32/sp_min/sp_min.ld.S | 3 | ||||
-rw-r--r-- | bl32/tsp/tsp.ld.S | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bl32/sp_min/sp_min.ld.S b/bl32/sp_min/sp_min.ld.S index 1695e1e0a..0a2bad01e 100644 --- a/bl32/sp_min/sp_min.ld.S +++ b/bl32/sp_min/sp_min.ld.S @@ -20,6 +20,8 @@ MEMORY { #endif /* PLAT_SP_MIN_EXTRA_LD_SCRIPT */ SECTIONS { + RAM_REGION_START = ORIGIN(RAM); + RAM_REGION_LENGTH = LENGTH(RAM); . = BL32_BASE; ASSERT(. == ALIGN(PAGE_SIZE), @@ -149,4 +151,5 @@ SECTIONS { } ASSERT(. <= BL32_LIMIT, "BL32 image has exceeded its limit.") + RAM_REGION_END = .; } diff --git a/bl32/tsp/tsp.ld.S b/bl32/tsp/tsp.ld.S index a6658dd7c..b735f45e8 100644 --- a/bl32/tsp/tsp.ld.S +++ b/bl32/tsp/tsp.ld.S @@ -16,6 +16,8 @@ MEMORY { } SECTIONS { + RAM_REGION_START = ORIGIN(RAM); + RAM_REGION_LENGTH = LENGTH(RAM); . = BL32_BASE; ASSERT(. == ALIGN(PAGE_SIZE), @@ -121,4 +123,5 @@ SECTIONS { #endif /* USE_COHERENT_MEM */ ASSERT(. <= BL32_LIMIT, "BL32 image has exceeded its limit.") + RAM_REGION_END = .; } |