From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 10 Aug 2011 09:13:25 +0200 Subject: [U-Boot] [PATCH v4] ARM926ejs: Add routines to invalidate D-Cache In-Reply-To: <4E422836.10104@atmel.com> References: <1312944565-3279-1-git-send-email-hong.xu@atmel.com> <4E4226FE.4010805@aribaud.net> <4E422836.10104@atmel.com> Message-ID: <201108100913.25489.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday, August 10, 2011 08:41:58 AM Hong Xu wrote: > Hi Albert, > > On 08/10/2011 02:36 PM, Albert ARIBAUD wrote: > > Hi Hong Xu, > > > > Le 10/08/2011 08:17, Hong Xu a ?crit : > >> There are some ARM926 specific code in arch/arm/lib/cache.c; So I also > >> put the stuff there. ;-) I think Albert Aribaud or the original > >> contributor of cache part shall have clearer view.So, I'll keep neutral > >> to hear more ideas. > > > > Basically, cache operations are CP15 commands which are defined for each > > ARM architecture, not for each ISA, so Marek is right about the best > > place for this being in arm926ejs. Actually, I think > > arch/arm/lib/cache.c should only contain the weak defaults (i.e., no > > real cache action) and each architecture should provide overrides to the > > defaults. Currently this is almost the case, with (apart from arm926ejs > > which you're already touching) only one arm1136 specific implementation > > to move. > > > > So please move the arm926ejs specific implementations to > > arch/arm/cpu/arm926ejs/cache.c as suggested by Marek, keeping only the > > weak default in arch/arm/lib/cache.c. > > Ok, I'll manage a basic version for review. Can you also make a separate patch for the arm1136 possibly (to move the stuff from lib/cache.c)? Anyway, thanks a lot for your endurance. > > Thanks > > BR, > Eric > > > Amicalement,