[U-Boot] [PATCH 6/9] Hang when no command line processing can be performed

Simon Glass sjg at chromium.org
Fri Feb 26 05:00:53 CET 2016


Normally board_run_command() will handle command processed. But if for some
reason it returns then we should hang to avoid further processing.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 common/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/main.c b/common/main.c
index 1a2ef39..a9f7f71 100644
--- a/common/main.c
+++ b/common/main.c
@@ -72,4 +72,5 @@ void main_loop(void)
 	autoboot_command(s);
 
 	cli_loop();
+	hang();
 }
-- 
2.7.0.rc3.207.g0ac5344



More information about the U-Boot mailing list