From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: "go addr" Question...
Date: Tue, 06 Sep 2005 13:24:17 -0400 [thread overview]
Message-ID: <431DD0C1.6040707@smiths-aerospace.com> (raw)
In-Reply-To: <6.1.1.1.0.20050906130344.01ec0300@ptg1.spd.analog.com>
Robin Getz wrote:
>
>> It is gets flushed with loads:
>> and with loadb:
>> and with all network commands (tftp, nfs):
>
>
> Ok - maybe I am missing something - do you expect U-Boot to be cached?
> i.e. the polling of the serial line - if that is in cache when someone
> says "go" - where is that flushed?
>
> Thanks
> -Robin
I'm probably setting myself up for being slapped down since there are so
many targets that a generalization is generally wrong :-) but...
U-boot typically runs with instruction cache enabled and data cache
disabled (experience base: PowerPC). This is because instruction cache
"just works" and is very beneficial and data cache generally causes
massive grief (it is pretty much useless without setting up the BATs or
full MMU on the PowerPC).
It sounds like Robin has data caching turned on, which would explain why
he needs to flush the data cache before jumping to his newly loaded
executable. If data caching is turned off, this would not be a problem
because you would not have been executing where the new code is loaded
in (unless you are doing something really weird), therefore it would not
have stale instructions in the instruction cache.
gvb
next prev parent reply other threads:[~2005-09-06 17:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-06 14:17 [U-Boot-Users] "go addr" Question Robin Getz
2005-09-06 14:38 ` Wolfgang Denk
2005-09-06 15:20 ` [U-Boot-Users] " Robin Getz
2005-09-06 17:06 ` Robin Getz
2005-09-06 17:24 ` Jerry Van Baren [this message]
2005-09-06 19:43 ` Wolfgang Denk
2005-09-07 13:25 ` Scott McNutt
2005-09-06 19:40 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2005-09-06 18:05 Robin Getz
2005-09-06 19:49 ` Wolfgang Denk
2005-09-14 15:46 Robin Getz
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=431DD0C1.6040707@smiths-aerospace.com \
--to=gerald.vanbaren@smiths-aerospace.com \
--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