From: Sonic Zhang Date: Wed, 08 Aug 2007 15:33:16 +0800 Subject: [U-Boot-Users] [Patch] Disable icache before call the first line of kernel in do_bootelf(). In-Reply-To: <1186552257.15798.6.camel@sevens.analog.com> References: <1186552257.15798.6.camel@sevens.analog.com> Message-ID: <1186558396.17519.11.camel@sevens.analog.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang Denk, Thank you for your comment. Yes, this may not be necessary for all arch. How about add a hook function for each arch? I find the icache is also disabled before call a binary in common code do_go(). See following snip. Should these lines be conditional? Thanks Sonic 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(); } ...