summaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-03 15:40:35 (GMT)
committerTom Rini <trini@konsulko.com>2016-07-14 22:22:32 (GMT)
commitb9c771b04c215de981987a92d5e1f016c8dd1921 (patch)
treef7c5aa8b23d82160b9017bbcb85a1985446b1ee4 /arch/sandbox
parent07f4eadc99b365fa92114f19c02218ff39c45ed9 (diff)
downloadu-boot-fsl-qoriq-b9c771b04c215de981987a92d5e1f016c8dd1921.tar.xz
sandbox: Don't exit when bootm completes
At present sandbox exits when the 'bootm' command completes, since it is not actually able to run the OS that is loaded. Normally 'bootm' failure is considered a fatal error in U-Boot. However this is annoying for tests, which may want to examine the state after a test is complete. In any case there is a 'reset' command which can be used to exit, if required. Change the behaviour to return normally from the 'bootm' command on sandbox. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Teddy Reed <teddy.reed@gmail.com>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/lib/bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/lib/bootm.c b/arch/sandbox/lib/bootm.c
index d49c927..0c9a797 100644
--- a/arch/sandbox/lib/bootm.c
+++ b/arch/sandbox/lib/bootm.c
@@ -56,7 +56,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
printf("## Transferring control to Linux (at address %08lx)...\n",
images->ep);
- reset_cpu(0);
+ printf("sandbox: continuing, as we cannot run Linux\n");
}
return 0;