X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=arch%2Fopenrisc%2Flib%2Fbootm.c;fp=arch%2Fopenrisc%2Flib%2Fbootm.c;h=24ca0a724980813c895bc7dce104f399e62c28fe;hp=7f716b85982f957896c5a13b9164f5069a8fc2e0;hb=2cb0e55a3cd737be1d228a9f90b3d34fab0d0d46;hpb=5a34d9bf31a021987f97f20aefa812b97b58584e diff --git a/arch/openrisc/lib/bootm.c b/arch/openrisc/lib/bootm.c index 7f716b8598..24ca0a7249 100644 --- a/arch/openrisc/lib/bootm.c +++ b/arch/openrisc/lib/bootm.c @@ -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;