From 0bb6e4c533211e70a4481c8d9128fd74aaa38c66 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 14 Jan 2016 10:54:42 +0100 Subject: bootm: introduce bootm_get_os_size ARM do_bootm_linux is not only called with uImages but also with raw images, so we can't use uimage_get_size() here. Introduce bootm_get_os_size() which handles the different image types. Signed-off-by: Sascha Hauer --- include/boot.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/boot.h') diff --git a/include/boot.h b/include/boot.h index bdd5477d35..b172c05b67 100644 --- a/include/boot.h +++ b/include/boot.h @@ -112,6 +112,7 @@ static inline int linux_bootargs_overwrite(const char *bootargs) int bootm_load_os(struct image_data *data, unsigned long load_address); int bootm_load_initrd(struct image_data *data, unsigned long load_address); int bootm_load_devicetree(struct image_data *data, unsigned long load_address); +int bootm_get_os_size(struct image_data *data); #define UIMAGE_SOME_ADDRESS (UIMAGE_INVALID_ADDRESS - 1) -- cgit v1.2.3