From: Guennadi Liakhovetski <lg@denx.de>
Date: Thu, 31 Jul 2008 10:35:04 +0000 (+0200)
Subject: Uncompressed images loaded to their start address shall set load_end too
X-Git-Tag: v2025.01-rc5-pxa1908~21999^2~13^2~3
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=2e752be39d3e398d4ab89ffa6634c397df298297;p=u-boot.git

Uncompressed images loaded to their start address shall set load_end too

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Bartlomiej Sieka <tur@semihalf.com>
---

diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 18682fe5a2..18d71008da 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -251,10 +251,9 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
 			memmove_wd ((void *)load_start,
 				   (void *)os_data, os_len, CHUNKSZ);
-
-			load_end = load_start + os_len;
-			puts("OK\n");
 		}
+		load_end = load_start + os_len;
+		puts("OK\n");
 		break;
 	case IH_COMP_GZIP:
 		printf ("   Uncompressing %s ... ", type_name);