diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/cmd_bootm.c | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 45e726af8..83fa5d7bd 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -564,6 +564,13 @@ int do_bootm_subcommand(cmd_tbl_t *cmdtp, int flag, int argc,  			break;  		case BOOTM_STATE_OS_GO:  			disable_interrupts(); +#ifdef CONFIG_NETCONSOLE +			/* +			 * Stop the ethernet stack if NetConsole could have +			 * left it up +			 */ +			eth_halt(); +#endif  			arch_preboot_os();  			boot_fn(BOOTM_STATE_OS_GO, argc, argv, &images);  			break; @@ -622,6 +629,11 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  	 */  	iflag = disable_interrupts(); +#ifdef CONFIG_NETCONSOLE +	/* Stop the ethernet stack if NetConsole could have left it up */ +	eth_halt(); +#endif +  #if defined(CONFIG_CMD_USB)  	/*  	 * turn off USB to prevent the host controller from writing to the @@ -1599,6 +1611,11 @@ static int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  	 */  	disable_interrupts(); +#ifdef CONFIG_NETCONSOLE +	/* Stop the ethernet stack if NetConsole could have left it up */ +	eth_halt(); +#endif +  #if defined(CONFIG_CMD_USB)  	/*  	 * turn off USB to prevent the host controller from writing to the |