blob: 0c310eb553c08293aae2679638b153026a74a8c1 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001From 2851f0e6c1216894b9498d7b91256bb1ef49e544 Mon Sep 17 00:00:00 2001
2From: Jaxson Han <jaxson.han@arm.com>
3Date: Tue, 2 Nov 2021 15:10:28 +0800
4Subject: [PATCH] lds: Mark the mem range
5
6Add firmware_start and firmware_end, so that we can use them to
7calculate the mem range of boot-wrapper and then set the range to
8/memreserve/ of dtb.
9
10Issue-ID: SCM-3815
11Upstream-Status: Inappropriate [other]
12 Implementation pending further discussion
13Signed-off-by: Jaxson Han <jaxson.han@arm.com>
14Change-Id: Idc5a2894e193c75381049a0f359b4b2a51c567ee
15---
16 model.lds.S | 2 ++
17 1 file changed, 2 insertions(+)
18
19diff --git a/model.lds.S b/model.lds.S
20index d4e7e13..ab98ddf 100644
21--- a/model.lds.S
22+++ b/model.lds.S
23@@ -64,6 +64,7 @@ SECTIONS
24 #endif
25
26 .boot PHYS_OFFSET: {
27+ PROVIDE(firmware_start = .);
28 *(.init)
29 *(.text*)
30 *(.data* .rodata* .bss* COMMON)
31@@ -76,6 +77,7 @@ SECTIONS
32 mbox = .;
33 QUAD(0x0)
34 }
35+ PROVIDE(firmware_end = .);
36
37 ASSERT(etext <= (PHYS_OFFSET + TEXT_LIMIT), ".text overflow!")
38 }