diff options
author | Tom Rini <trini@ti.com> | 2015-02-16 08:37:22 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-02-16 08:37:22 -0500 |
commit | 95776391852147ea5c2e8ac01613a20c6583bc33 (patch) | |
tree | cb12cf255025fc8261cc751731621f6ba0bf1711 /arch/sandbox/cpu/start.c | |
parent | eca99c02566534940b95ee77b6ea1f098da93adc (diff) | |
parent | e50ab22984ce90ffcc47bc620ed2caac0bcc02f7 (diff) | |
download | u-boot-imx-95776391852147ea5c2e8ac01613a20c6583bc33.zip u-boot-imx-95776391852147ea5c2e8ac01613a20c6583bc33.tar.gz u-boot-imx-95776391852147ea5c2e8ac01613a20c6583bc33.tar.bz2 |
Merge branch 'sandbox' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'arch/sandbox/cpu/start.c')
-rw-r--r-- | arch/sandbox/cpu/start.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 097f29a..ec01040 100644 --- a/arch/sandbox/cpu/start.c +++ b/arch/sandbox/cpu/start.c @@ -78,11 +78,13 @@ int sandbox_main_loop_init(void) /* Execute command if required */ if (state->cmd) { + int retval; + cli_init(); - run_command_list(state->cmd, -1, 0); + retval = run_command_list(state->cmd, -1, 0); if (!state->interactive) - os_exit(state->exit_type); + os_exit(retval); } return 0; |