From: Wolfgang Denk Date: Mon, 14 Apr 2008 00:01:54 +0200 Subject: [U-Boot-Users] [patch] disable caches before booting an app for Blackfin apps In-Reply-To: Your message of "Tue, 29 Jan 2008 18:21:05 EST." <200801291821.05927.vapier@gentoo.org> Message-ID: <20080413220154.99E67248B9@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <200801291821.05927.vapier@gentoo.org> you wrote: > It isn't generally save to execute applications outside of U-Boot with caches > enabled due to the way the Blackfin processor handles caches (requires > software assistance). This patch disables caches before booting an ELF or > just booting raw code. The previous discussion on the patch was that we > wanted to use weaks instead, but that proved to not be feasible when multiple > symbols are involved, which puts us back at the ifdef solution. I've > minimized the ugliness by moving the setup step outside of the main function. > > Signed-off-by: Mike Frysinger Applied. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de One does not thank logic. -- Sarek, "Journey to Babel", stardate 3842.4