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>
This commit is contained in:
Andrew F. Davis 2020-06-03 05:03:29 +00:00 committed by Praneeth Bajjuri
parent 571719cb25
commit f1dc3f7831
1 changed files with 3 additions and 0 deletions

View File

@ -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);