]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sandbox/cpu/start.c
sandbox: Add -j option to indicate a jump from a previous U-Boot
[karo-tx-uboot.git] / arch / sandbox / cpu / start.c
index 1df21d49fa501d9744b5a589cc1904d1f0bc20c6..2d19fe795e06baef0e6229ea3675fe8b6a6b714d 100644 (file)
@@ -107,6 +107,22 @@ static int sandbox_cmdline_cb_interactive(struct sandbox_state *state,
 
 SANDBOX_CMDLINE_OPT_SHORT(interactive, 'i', 0, "Enter interactive mode");
 
+static int sandbox_cmdline_cb_jump(struct sandbox_state *state,
+                                  const char *arg)
+{
+       state->jumped = 1;
+
+       /*
+        * TODO(sjg@chromium.org): Note this causes problems for gdb which
+        * wants to read debug data from the image.
+        *
+        * os_unlink(arg);
+        */
+
+       return 0;
+}
+SANDBOX_CMDLINE_OPT_SHORT(jump, 'j', 1, "Jumped from previous U-Boot");
+
 static int sandbox_cmdline_cb_memory(struct sandbox_state *state,
                                     const char *arg)
 {