summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2020-06-12 15:41:20 +0300
committerTom Rini <trini@konsulko.com>2020-07-17 08:51:01 -0400
commitfbde7589ce3049318a0e9495db72472af03704af (patch)
tree21643da4348e8bc037e1cefe973400d8e3733c63 /include
parent19c6808d87de3a9d8889a5881efc9467d3b50826 (diff)
downloadu-boot-fbde7589ce3049318a0e9495db72472af03704af.tar.gz
u-boot-fbde7589ce3049318a0e9495db72472af03704af.tar.xz
u-boot-fbde7589ce3049318a0e9495db72472af03704af.zip
common: bootm: add checks to verify if ramdisk / fdtimage overlaps OS image
These cases are typically fatal and are difficult to debug for random users. Add checks for detecting overlapping images and abort if overlap is detected. Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/bootm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bootm.h b/include/bootm.h
index 1e7f29e134..0350c349f3 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -53,7 +53,8 @@ int boot_selected_os(int argc, char *const argv[], int state,
ulong bootm_disable_interrupts(void);
/* This is a special function used by booti/bootz */
-int bootm_find_images(int flag, int argc, char *const argv[]);
+int bootm_find_images(int flag, int argc, char *const argv[], ulong start,
+ ulong size);
int do_bootm_states(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[], int states, bootm_headers_t *images,