From ab4e07eb71ca1913e5291316565c9d073987de85 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 26 Feb 2012 17:38:50 -0500 Subject: 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 Signed-off-by: Mike Frysinger --- arch/sandbox/lib/board.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/sandbox/lib') diff --git a/arch/sandbox/lib/board.c b/arch/sandbox/lib/board.c index 6d464d6ae8d..25a8d02fd7c 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. -- cgit v1.2.3