summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/include/asm/state.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-15 18:44:03 -0700
committerTom Rini <trini@konsulko.com>2018-11-26 08:25:36 -0500
commitd66ddafaf94386f8b92b190a09a0dc488a89149f (patch)
treeb2c321722f6ca0490cae1deed943d7b1448d83b7 /arch/sandbox/include/asm/state.h
parent6d07d63d2f07497ba9846a5bcd3e5b9c417db931 (diff)
downloadu-boot-d66ddafaf94386f8b92b190a09a0dc488a89149f.tar.gz
u-boot-d66ddafaf94386f8b92b190a09a0dc488a89149f.tar.xz
u-boot-d66ddafaf94386f8b92b190a09a0dc488a89149f.zip
sandbox: Add a new 'sb' command
The old 'sb' command was deprecated in 2015 and replaced with 'host'. It is useful to be able to access some internal sandbox state, particularly for testing. Resurrect the old command and provide a way to print some basic state information (currently just the arguments to sandbox). Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm/state.h')
-rw-r--r--arch/sandbox/include/asm/state.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/state.h b/arch/sandbox/include/asm/state.h
index 0a2e3c41ae..8fabe70a86 100644
--- a/arch/sandbox/include/asm/state.h
+++ b/arch/sandbox/include/asm/state.h
@@ -243,6 +243,13 @@ bool state_get_skip_delays(void);
void state_reset_for_test(struct sandbox_state *state);
/**
+ * state_show() - Show information about the sandbox state
+ *
+ * @param state Sandbox state to show
+ */
+void state_show(struct sandbox_state *state);
+
+/**
* Initialize the test system state
*/
int state_init(void);