summaryrefslogtreecommitdiff
path: root/arch/sandbox/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-02-26 22:38:50 (GMT)
committerMike Frysinger <vapier@gentoo.org>2012-03-12 15:06:00 (GMT)
commitab4e07eb71ca1913e5291316565c9d073987de85 (patch)
tree5bde9398bbdc0205f03135d48b9de5c62261c322 /arch/sandbox/lib
parent6fb62078210b78ff5cc87829a62166feebb8e9dc (diff)
downloadu-boot-ab4e07eb71ca1913e5291316565c9d073987de85.tar.xz
sandbox: allow processing before main loop
In order to pass command line arguments to sandbox we need to be able to act on them. So take control back at the end of board_init_r() from where we can call the main loop or do something else. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/sandbox/lib')
-rw-r--r--arch/sandbox/lib/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/lib/board.c b/arch/sandbox/lib/board.c
index 6d464d6..25a8d02 100644
--- a/arch/sandbox/lib/board.c
+++ b/arch/sandbox/lib/board.c
@@ -269,6 +269,8 @@ void board_init_r(gd_t *id, ulong dest_addr)
post_run(NULL, POST_RAM | post_bootmode_get(0));
#endif
+ sandbox_main_loop_init();
+
/*
* For now, run the main loop. Later we might let this be done
* in the main program.