]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/openrisc/lib/bootm.c
avr32/m68k/microblaze/nds32/nios2/openrisc/sh/sparc: fix do_bootm_linux
[karo-tx-uboot.git] / arch / openrisc / lib / bootm.c
index 7f716b85982f957896c5a13b9164f5069a8fc2e0..24ca0a724980813c895bc7dce104f399e62c28fe 100644 (file)
@@ -41,6 +41,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[],
        void    (*kernel) (unsigned int);
        ulong   rd_data_start, rd_data_end;
 
+       /*
+        * allow the PREP bootm subcommand, it is required for bootm to work
+        */
+       if (flag & BOOTM_STATE_OS_PREP)
+               return 0;
+
        if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
                return 1;