Uncompressed images loaded to their start address shall set load_end too
authorGuennadi Liakhovetski <lg@denx.de>
Thu, 31 Jul 2008 10:35:04 +0000 (12:35 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 31 Jul 2008 15:41:00 +0000 (17:41 +0200)
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Bartlomiej Sieka <tur@semihalf.com>
common/cmd_bootm.c

index 18682fe5a247c1cb538bdbc71c22aeec43b09021..18d71008dad975593c898733e39287ee4d80fd86 100644 (file)
@@ -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);