From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott McNutt Date: Wed, 23 Mar 2005 21:56:01 -0500 Subject: [U-Boot-Users] do_bootm() and flush_cache() In-Reply-To: <20050323192155.52210C108D@atlas.denx.de> References: <20050323192155.52210C108D@atlas.denx.de> Message-ID: <42422C41.3040200@psyent.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >>But after reviewing do_bootm(), I don't see where the >>caches are flushed. A call to flush_cache() after >>moving/decompressing the image seems appropriate, but > > > Why? After the move/decompression, the data cache must be flushed to main memory ... otherwise an instruction cache miss (after jumping into the kernel) may read in a (potentially) stale line. (Neither cache can be disabled.) Regards, --Scott