From: Mike Frysinger Date: Mon, 13 Aug 2007 10:52:43 -0400 Subject: [U-Boot-Users] [Patch] Disable icache before call the first line of kernel in do_bootelf(). In-Reply-To: <20070808154129.B5BE9352B18@atlas.denx.de> References: <20070808154129.B5BE9352B18@atlas.denx.de> Message-ID: <200708131052.44472.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 Wednesday 08 August 2007, Wolfgang Denk wrote: > In message <1186558396.17519.11.camel@sevens.analog.com> you wrote: > > Thank you for your comment. Yes, this may not be necessary for all arch. > > How about add a hook function for each arch? > > Using "weak", right. so using weak hooks is OK now ? i think it'd be good to migrate all of the ugly boote/bootm/etc... cruft to external weaks and let arches define their own > > int do_go (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) > > { > > ulong addr, rc; > > int rcode = 0; > > > > if (argc < 2) { > > printf ("Usage:\n%s\n", cmdtp->usage); > > return 1; > > } > > > > addr = simple_strtoul(argv[1], NULL, 16); > > printf ("## Starting application at 0x%08lX ...\n", addr); > > > > if (icache_status()){ > > icache_disable(); > > } > > if (dcache_status()) { > > dcache_disable(); > > } > > This is not in the official tree, and it will not make it there. It > will probably not even build for many boards. it's called pseudo code ... of course code that has "..." in it wont build :p -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/20070813/7d25b842/attachment.pgp