From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] ARM v7: Flush icache when executing a program with go
Date: Fri, 17 May 2013 00:13:50 +0200 [thread overview]
Message-ID: <20130516221350.49FAA3811D7@gemini.denx.de> (raw)
In-Reply-To: <1368718669.25965.14.camel@localhost>
Dear Henrik,
In message <1368718669.25965.14.camel@localhost> you wrote:
>
> I do not like having these things arch specific. I implemented it as an
> ARMv7 hook only because there is no general cross-platform u-boot
> function for clearing the icache. I'd much rather have a generic
> function call for invalidating the cache and leave it up to the arches
> to get it implemented where needed.
There is a common, architecture-independent C API that implements
cache flushing/invalidation; please re-read the summary at [1]
[1] http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/158101/focus=158559
> Or maybe just punt it. If you are on an arch with incoherent caches then
> make sure to make use of the cache command to flush caches and maybe
> even disable caches before using go.
The cache commands currently do not support subcommands for flushing
/ invalidating the caches. See again [1].
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Roses are red
Violets are blue
Some poems rhyme
next prev parent reply other threads:[~2013-05-16 22:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 14:16 [U-Boot] ARM v7: Flush icache when executing a program with go Henrik Nordström
2013-05-15 15:11 ` Albert ARIBAUD
2013-05-15 16:34 ` Henrik Nordström
2013-05-15 16:44 ` Albert ARIBAUD
2013-05-15 16:51 ` Tom Rini
2013-05-15 17:39 ` Albert ARIBAUD
2013-05-16 1:54 ` Henrik Nordström
2013-05-16 7:14 ` Wolfgang Denk
2013-05-16 13:37 ` Tom Rini
2013-05-16 15:37 ` Henrik Nordström
2013-05-16 22:13 ` Wolfgang Denk [this message]
2013-05-17 12:16 ` Henrik Nordström
2013-05-20 0:55 ` Kuo-Jung Su
2013-05-21 12:37 ` Wolfgang Denk
2013-05-21 12:26 ` Wolfgang Denk
2013-05-21 21:57 ` Henrik Nordström
2013-05-21 12:38 ` Kees Jongenburger
2013-05-21 16:45 ` Albert ARIBAUD
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=20130516221350.49FAA3811D7@gemini.denx.de \
--to=wd@denx.de \
--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