diff options
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/avr32/lib/bootm.c | 9 | ||||
| -rw-r--r-- | arch/m68k/lib/bootm.c | 6 | ||||
| -rw-r--r-- | arch/microblaze/lib/bootm.c | 6 | ||||
| -rw-r--r-- | arch/nds32/lib/bootm.c | 6 | ||||
| -rw-r--r-- | arch/nios2/lib/bootm.c | 6 | ||||
| -rw-r--r-- | arch/openrisc/lib/bootm.c | 6 | ||||
| -rw-r--r-- | arch/sh/lib/bootm.c | 6 | ||||
| -rw-r--r-- | arch/sparc/lib/bootm.c | 6 | 
8 files changed, 51 insertions, 0 deletions
| diff --git a/arch/avr32/lib/bootm.c b/arch/avr32/lib/bootm.c index 87f3f9c35..eedab9d11 100644 --- a/arch/avr32/lib/bootm.c +++ b/arch/avr32/lib/bootm.c @@ -187,6 +187,15 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima  	struct	tag *params, *params_start;  	char	*commandline = getenv("bootargs"); +	/* +	 * allow the PREP bootm subcommand, it is required for bootm to work +	 * +	 * TODO: Andreas Bießmann <andreas.devel@googlemail.com> refactor the +	 * do_bootm_linux() for avr32 +	 */ +	if (flag & BOOTM_STATE_OS_PREP) +		return 0; +  	if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))  		return 1; diff --git a/arch/m68k/lib/bootm.c b/arch/m68k/lib/bootm.c index 56b6512be..cc45167fc 100644 --- a/arch/m68k/lib/bootm.c +++ b/arch/m68k/lib/bootm.c @@ -75,6 +75,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima  	void  (*kernel) (bd_t *, ulong, ulong, ulong, ulong);  	struct lmb *lmb = &images->lmb; +	/* +	 * 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; diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c index b328f9497..c5dfc9ebe 100644 --- a/arch/microblaze/lib/bootm.c +++ b/arch/microblaze/lib/bootm.c @@ -40,6 +40,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[],  	char	*commandline = getenv("bootargs");  	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; diff --git a/arch/nds32/lib/bootm.c b/arch/nds32/lib/bootm.c index 03f58bf32..65ae1eb71 100644 --- a/arch/nds32/lib/bootm.c +++ b/arch/nds32/lib/bootm.c @@ -58,6 +58,12 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)  	char *commandline = getenv("bootargs");  #endif +	/* +	 * 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; diff --git a/arch/nios2/lib/bootm.c b/arch/nios2/lib/bootm.c index 114e146d9..51597ea6f 100644 --- a/arch/nios2/lib/bootm.c +++ b/arch/nios2/lib/bootm.c @@ -45,6 +45,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima  	if (of_flat_tree)  		initrd_end = (ulong)of_flat_tree; +	/* +	 * 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; diff --git a/arch/openrisc/lib/bootm.c b/arch/openrisc/lib/bootm.c index 7f716b859..24ca0a724 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; diff --git a/arch/sh/lib/bootm.c b/arch/sh/lib/bootm.c index 57273fa44..4fdc7aab7 100644 --- a/arch/sh/lib/bootm.c +++ b/arch/sh/lib/bootm.c @@ -79,6 +79,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima  	unsigned long size = images->ep - (unsigned long)param;  	char *bootargs = getenv("bootargs"); +	/* +	 * 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; diff --git a/arch/sparc/lib/bootm.c b/arch/sparc/lib/bootm.c index 1a9343c10..9e5fb40df 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; |