summaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-02-27 13:26:16 -0700
committerSimon Glass <sjg@chromium.org>2014-03-17 20:05:48 -0600
commitbda7773f044a13cf69cbbcb016285dd217b981c3 (patch)
tree72fcc9a8ce7f2651656c761096764b1452327349 /arch/sandbox/include/asm
parent47f5fcfb4169a8ff6e8c81738b77f8572f972e75 (diff)
downloadu-boot-imx-bda7773f044a13cf69cbbcb016285dd217b981c3.zip
u-boot-imx-bda7773f044a13cf69cbbcb016285dd217b981c3.tar.gz
u-boot-imx-bda7773f044a13cf69cbbcb016285dd217b981c3.tar.bz2
sandbox: Add -j option to indicate a jump from a previous U-Boot
In order to support the 'go' command we allow the jumping U-Boot to pass its filename to the new U-Boot image. This can then be used to delete that image if required. Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Che-Liang Chiou <clchiou@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm')
-rw-r--r--arch/sandbox/include/asm/state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sandbox/include/asm/state.h b/arch/sandbox/include/asm/state.h
index e8e4fea..304104e 100644
--- a/arch/sandbox/include/asm/state.h
+++ b/arch/sandbox/include/asm/state.h
@@ -30,7 +30,8 @@ struct sandbox_state {
enum exit_type_id exit_type; /* How we exited U-Boot */
const char *parse_err; /* Error to report from parsing */
int argc; /* Program arguments */
- char **argv;
+ char **argv; /* Command line arguments */
+ bool jumped; /* Jumped from previous U_Boot */
uint8_t *ram_buf; /* Emulated RAM buffer */
unsigned int ram_size; /* Size of RAM buffer */
const char *ram_buf_fname; /* Filename to use for RAM buffer */