X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=arch%2Fsparc%2Flib%2Fbootm.c;h=9e5fb40df8083302c06a3905aca6196c9f640281;hp=1a9343c108263a0a3c28512669a201504b08a046;hb=2cb0e55a3cd737be1d228a9f90b3d34fab0d0d46;hpb=5a34d9bf31a021987f97f20aefa812b97b58584e;ds=sidebyside diff --git a/arch/sparc/lib/bootm.c b/arch/sparc/lib/bootm.c index 1a9343c108..9e5fb40df8 100644 --- a/arch/sparc/lib/bootm.c +++ b/arch/sparc/lib/bootm.c @@ -99,6 +99,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t * im void (*kernel) (struct linux_romvec *, void *); int ret; + /* + * 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;