From: Wolfgang Denk Date: Wed, 10 Mar 2004 09:12:51 +0100 Subject: [U-Boot-Users] Memory Caching in Interrupt mode In-Reply-To: Your message of "Tue, 09 Mar 2004 18:05:10 PST." <20040310020510.99183.qmail@web12009.mail.yahoo.com> Message-ID: <20040310081256.5FC0FC0655@atlas.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 <20040310020510.99183.qmail@web12009.mail.yahoo.com> you wrote: > > As a general rule should the caches (data / > instruction) be enabled or disabled? There is no general rule. It depends on the architecture / processor. > I noticed in the MIPS code that the caches were being > enabled. If you don't have any on-chip memory or SRAM or so which can be used for intiial data and stack, the "memopry-in-data-cache" trick must be used, and then you obviously have to enable the DC. IC should always be on. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de A meeting is an event at which the minutes are kept and the hours are lost.