summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2020-06-03 05:03:29 +0000
committerPraneeth Bajjuri <praneeth@ti.com>2021-07-21 13:14:44 -0500
commitf1dc3f78312c115e4a1195fa9c71eb89677dd52d (patch)
treeab9423e52757c913d34467d5bce8a0dc3b632c7a /common
parent571719cb2515057df8fee236e4c098d380e936ac (diff)
bootm: Store OS start and end info in images structure
Store the start and end of the OS image that is loaded in images structure. This is similar to what we do in booti. Signed-off-by: Andrew F. Davis <afd@ti.com>
Diffstat (limited to 'common')
-rw-r--r--common/bootm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 167eea4a1e..be79e92064 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -397,6 +397,9 @@ static int bootm_load_os(bootm_headers_t *images, int boot_progress)
flush_cache(flush_start, ALIGN(load_end, ARCH_DMA_MINALIGN) - flush_start);
+ images->os.start = load;
+ images->os.end = load_end;
+
debug(" kernel loaded at 0x%08lx, end = 0x%08lx\n", load, load_end);
bootstage_mark(BOOTSTAGE_ID_KERNEL_LOADED);