From fcb72e16ce901b0a379cc26abc6396be7a18279e Mon Sep 17 00:00:00 2001 From: Harrison Mutai Date: Wed, 19 Apr 2023 09:30:15 +0100 Subject: 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 Change-Id: I106187f93b227d604bda650892f9e919047b3fc7 --- bl32/sp_min/sp_min.ld.S | 3 +++ bl32/tsp/tsp.ld.S | 3 +++ 2 files changed, 6 insertions(+) (limited to 'bl32') 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 = .; } -- cgit v1.2.3