summaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-09-27 12:06:07 -0700
committerTom Rini <trini@ti.com>2012-09-27 12:06:07 -0700
commitcec2655c3b3b86f14a6a5c2cbb01833f7e3974be (patch)
tree8428f50b579b3656fd24056ae3c6304f58aee620 /common/cmd_bootm.c
parentc57b953da923c6402afc1c890c21fdc7d5a2cc4a (diff)
parentee0f60df0b71092cd632fc6651f4157a2d252598 (diff)
downloadu-boot-cec2655c3b3b86f14a6a5c2cbb01833f7e3974be.tar.gz
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r--common/cmd_bootm.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 45e726af8b..83fa5d7bd8 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