public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Grant Likely <glikely@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] set up stack before board_init_f() on ppc440 core?
Date: Sat, 26 Feb 2005 09:23:50 -0700	[thread overview]
Message-ID: <528646bc05022608238666f74@mail.gmail.com> (raw)
In-Reply-To: <c3d0340b05022514561d473407@mail.gmail.com>

On Fri, 25 Feb 2005 14:56:17 -0800, Shawn Jin <shawnxjin@gmail.com> wrote:
> > In short: cache is like normal memory, just very fast (which does not
> > play a role here). We just have to make sure that no cache  fills  or
> > cache  flushes  will  be done (at least not for that part of the data
> > cache which is being used for the initial stack).
> 
> I don't see any caches are in a system memory mapping. Then I thought
> it could be only accessed by those cache specific instructions, like
> dcread. That's my misunderstanding.
Cache is a dynamic 'shadow' of main memory.  Any region marked
cacheable may loaded into the cache so that subsequent reads are
faster.  Cache operation is transparent to the code (except for cache
control operations like flush and invalidate).  With some careful
coding you can make sure that stack is fully in the cached so that
stack read/writes do not go out to SDRAM.

There are plenty of descriptions of how a cache works online.  It's
worth the time to research and understand it.  Cache operation has
complex and subtle impact on your firmware.

  reply	other threads:[~2005-02-26 16:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-25 18:42 [U-Boot-Users] set up stack before board_init_f() on ppc440 core? Shawn Jin
2005-02-25 21:45 ` Wolfgang Denk
2005-02-25 22:56   ` Shawn Jin
2005-02-26 16:23     ` Grant Likely [this message]
2005-03-04  3:29       ` Shawn Jin

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=528646bc05022608238666f74@mail.gmail.com \
    --to=glikely@gmail.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