diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-14 10:54:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-22 08:15:15 +0100 |
commit | 0bb6e4c533211e70a4481c8d9128fd74aaa38c66 (patch) | |
tree | d2111f302ccc55f29289558e97236ae829b96f29 /arch | |
parent | 3c0cf270c228dca8b5f7af3c4ac32cfeb91b508b (diff) | |
download | barebox-0bb6e4c533211e70a4481c8d9128fd74aaa38c66.tar.gz barebox-0bb6e4c533211e70a4481c8d9128fd74aaa38c66.tar.xz |
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/lib/bootm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 2439c36a45..0855907aec 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -135,7 +135,7 @@ static int do_bootm_linux(struct image_data *data) * relocate itself before decompression. */ load_address = mem_start + PAGE_ALIGN( - uimage_get_size(data->os, data->os_num) * 4); + bootm_get_os_size(data) * 4); if (bootm_verbose(data)) printf("no OS load address, defaulting to 0x%08lx\n", load_address); |