summaryrefslogtreecommitdiff
path: root/arch/sandbox/cpu/start.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sandbox/cpu/start.c')
-rw-r--r--arch/sandbox/cpu/start.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c
index a429e29..2b66eed 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.