From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4] ARM926ejs: Add routines to invalidate D-Cache
Date: Wed, 10 Aug 2011 08:36:46 +0200 [thread overview]
Message-ID: <4E4226FE.4010805@aribaud.net> (raw)
In-Reply-To: <4E422278.6030102@atmel.com>
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.
Amicalement,
--
Albert.
next prev parent reply other threads:[~2011-08-10 6:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 2:49 [U-Boot] [PATCH v4] ARM926ejs: Add routines to invalidate D-Cache Hong Xu
2011-08-10 5:52 ` Marek Vasut
2011-08-10 5:56 ` Heiko Schocher
2011-08-10 6:17 ` Hong Xu
2011-08-10 6:36 ` Albert ARIBAUD [this message]
2011-08-10 6:41 ` Hong Xu
2011-08-10 7:13 ` Marek Vasut
2011-08-11 7:02 ` Aneesh V
2011-08-11 7:30 ` Marek Vasut
2011-08-12 9:57 ` Albert ARIBAUD
2011-08-12 10:04 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E4226FE.4010805@aribaud.net \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox