diff options
author | Simon Glass <sjg@chromium.org> | 2012-02-15 15:51:15 -0800 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-12 11:06:00 -0400 |
commit | 6fb62078210b78ff5cc87829a62166feebb8e9dc (patch) | |
tree | 339e41496993526f0c83bb995bb109b4b4ce47a8 /arch/sandbox/cpu/start.c | |
parent | 20186a1cbff3fd87954627538ce712a162c22351 (diff) |
sandbox: add concept of sandbox state
The state exists through the life of U-Boot. It can be adjusted by command
line options and perhaps later through a config file. It is available to
U-Boot through state_...() calls (within sandbox code).
The primary purpose of this is to contain the "hardware" state. It should
only be used by sandbox internal code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/sandbox/cpu/start.c')
-rw-r--r-- | arch/sandbox/cpu/start.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index a429e296ec..2b66eeddbb 100644 --- a/arch/sandbox/cpu/start.c +++ b/arch/sandbox/cpu/start.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 The Chromium OS Authors. + * Copyright (c) 2011-2012 The Chromium OS Authors. * See file CREDITS for list of people who contributed to this * project. * @@ -20,9 +20,16 @@ */ #include <common.h> +#include <asm/state.h> int main(int argc, char *argv[]) { + int err; + + err = state_init(); + if (err) + return err; + /* * Do pre- and post-relocation init, then start up U-Boot. This will * never return. |