summaryrefslogtreecommitdiffstats
path: root/commands/go.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-02-21 01:22:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-19 12:21:24 +0100
commit8a2e721fc56e848f182dddb9e494ed284e382d09 (patch)
treeea532df269b3708aa9c8f584588f022cbd11a01c /commands/go.c
parent0b5a776c1e9cc6dec8d5fa6d2f97eb8f19d3d325 (diff)
downloadbarebox-8a2e721fc56e848f182dddb9e494ed284e382d09.tar.gz
barebox-8a2e721fc56e848f182dddb9e494ed284e382d09.tar.xz
Flush consoles before exiting
We use FIFOs on some devices, so flush them before exiting so we do not get funny characters in the output. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/go.c')
-rw-r--r--commands/go.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/go.c b/commands/go.c
index ac5bf3ee6a..627f21e938 100644
--- a/commands/go.c
+++ b/commands/go.c
@@ -58,6 +58,8 @@ static int do_go (cmd_tbl_t *cmdtp, int argc, char *argv[])
printf ("## Starting application at 0x%08lX ...\n", addr);
+ console_flush();
+
#ifdef ARCH_HAS_EXECUTE
rcode = arch_execute(addr, argc, &argv[1]);
#else