From: Mike Frysinger Date: Mon, 21 Apr 2008 06:59:42 -0400 Subject: [U-Boot-Users] [PATCH] Blackfin: implement go/boote wrappers In-Reply-To: <200804210635.08416.vapier@gentoo.org> References: <20080421100749.377CD247AF@gemini.denx.de> <200804210635.08416.vapier@gentoo.org> Message-ID: <200804210659.43481.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 Monday 21 April 2008, Mike Frysinger wrote: > On Monday 21 April 2008, Wolfgang Denk wrote: > > Providing both a "go" and a "jump" command which differ just in cahce > > handling seems broken to me. If you want to add such a feature, then > > I recommend to do it as part of "go", but make it optional, i. e. in- > > troduce a new optional argument to the "go" command, something like > > > > go [ -cache={off,d-off,i-off,on,d-on,i-on} ] addr [ args ... ] > > cache is just an example. other arches may want to do other sort of > "system breakdown/cleanup" before relinquishing control. option flags to > commands really doesnt fit the style of u-boot (i expect that sort of > painful option parsing in redboot, not really u-boot). > > so we can do: > go [-noret] addr [args...] > or we can add "jump" to cmd_boot.c and merge the differences by just using > a function pointer to "do_go_exec" or "do_jump_exec". untested poc attached -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 827 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20080421/edee92fc/attachment.pgp -------------- next part -------------- A non-text attachment was scrubbed... Name: u-boot-jump-cmd.patch Type: text/x-diff Size: 1779 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20080421/edee92fc/attachment.patch