[U-Boot] [PATCH v4] ARM926ejs: Add routines to invalidate D-Cache
Marek Vasut
marek.vasut at gmail.com
Wed Aug 10 09:13:25 CEST 2011
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,
More information about the U-Boot
mailing list