]> git.sur5r.net Git - u-boot/blobdiff - lib_sparc/bootm.c
bootm: Add subcommands
[u-boot] / lib_sparc / bootm.c
index 565b41caf6b7ddd3160de6d2c42afd4b654096f3..49757595f7129c104252f15bf67462cd768c9c5d 100644 (file)
@@ -102,6 +102,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t * images)
        struct lmb *lmb = &images->lmb;
        int ret;
 
+       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
+               return 1;
+
        /* Get virtual address of kernel start */
        linux_hdr = (void *)images->os.load;