diff mbox series

[U-Boot,2/3] cmd: booti: Store OS start and end info in images structure

Message ID 20191007082217.15062-3-lokeshvutla@ti.com
State Accepted
Commit 683cdd6837e1be62be91a36937a6329b2ec6feb7
Delegated to: Tom Rini
Headers show
Series arm: K3: Make sure to clean caches before jumping to Linux | expand

Commit Message

Lokesh Vutla Oct. 7, 2019, 8:22 a.m. UTC
Store the start and end of the OS image that is loaded in images
structure.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 cmd/booti.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini Oct. 26, 2019, 12:05 a.m. UTC | #1
On Mon, Oct 07, 2019 at 01:52:16PM +0530, Lokesh Vutla wrote:

> Store the start and end of the OS image that is loaded in images
> structure.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/cmd/booti.c b/cmd/booti.c
index c36b0235df..841eff10d1 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -48,6 +48,9 @@  static int booti_start(cmd_tbl_t *cmdtp, int flag, int argc,
 	}
 
 	images->ep = relocated_addr;
+	images->os.start = relocated_addr;
+	images->os.end = relocated_addr + image_size;
+
 	lmb_reserve(&images->lmb, images->ep, le32_to_cpu(image_size));
 
 	/*