From: Wolfgang Denk Date: Tue, 11 May 2010 10:56:34 +0200 Subject: [U-Boot] [PATCH] ARM1136: Fix cache_flush() error and correct cpu_init_crit() comments In-Reply-To: References: <1273093774-10836-1-git-send-email-gdavis@mvista.com> <4BE81200.7070700@googlemail.com> Message-ID: <20100511085634.C6D36C67D4F@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 Dear "George G. Davis", In message you wrote: > > > Why don't we have to invalidate/flush the I- and BT-Cache here? I.e. why > is it sufficient to clean & invalidate the D-Cache here, only, and remove > the existing I- and BT-Cache invalidation/flushing? > > Quite frankly I thought for sure that it was handled elsewhere but now > that I look I see that it's not. Meanwhile, I don't think U-Boot is > typically susceptible to self-modifying-code issues anyway (?) and What has self-modifying-code to do with it? Proper cache handling is mandatory in manyother siutuations as well, including when you load code (Linux kernel, standalone applications) and then try to execute these, or when dealing with I/O buffers, DMA, etc. > this isn't likely required but I suppose lack of I+BTB invalidation I think it is mandatory. 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 A direct quote from the Boss: "We passed over a lot of good people to get the ones we hired."