From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 20 Jan 2012 14:00:36 -0500 Subject: [U-Boot] [PATCH v2 6/8] sandbox: Allow processing instead of or before main loop In-Reply-To: <1326242752-9981-6-git-send-email-sjg@chromium.org> References: <1326242752-9981-1-git-send-email-sjg@chromium.org> <1326242752-9981-6-git-send-email-sjg@chromium.org> Message-ID: <201201201400.37287.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 10 January 2012 19:45:50 Simon Glass wrote: > 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. does this need to be done this early ? parsing args can easily be done inside main() (as i showed in my patch that added command line support). in terms of processing the state, i think we can just make this into an init func that runs before we let board_init_r tail into main_loop -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: