X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_sh%2Fbootm.c;h=ae1f869f10d9b31da0e69a4ab75797a955045276;hb=f8d7b56e003fe19f37d4e9e326df9e9024a052b0;hp=078a24dea123d4dc22d4781c49b617ebaddc2368;hpb=f82642e33899766892499b163e60560fbbf87773;p=u-boot diff --git a/lib_sh/bootm.c b/lib_sh/bootm.c index 078a24dea1..ae1f869f10 100644 --- a/lib_sh/bootm.c +++ b/lib_sh/bootm.c @@ -56,6 +56,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) unsigned long size = images->ep - (unsigned long)param; char *bootargs = getenv("bootargs"); + if ((flag != 0) && (flag != BOOTM_STATE_OS_GO)) + return 1; + /* Setup parameters */ memset(param, 0, size); /* Clear zero page */ strcpy(cmdline, bootargs);