public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: ecos-patches@sources.redhat.com
Subject: How to deal with data cache in flash routines?
Date: Tue, 02 Dec 2008 22:25:00 -0000	[thread overview]
Message-ID: <gh4c5i$23o$1@ger.gmane.org> (raw)

I'm using the standard strata flash driver on an Altera NIOS2
platform, and everything worked fine until I enabled the data
cache in my processor configuration. Now none of the flash
routines work.

HAL_DCACHE_DISABLE() does nothing since there's no way to
disable the cache in the NIOS2 processor.  However, the cache
can be bypassed by setting bit 31 in the address used to access
the memory.

After browsing through the sources, it looks line one tells the
flash routines to do that by defining FLASH_P2V()?  If so, do I
do that in my strata.inl file for the target?

-- 
Grant Edwards                   grante             Yow! How many retured
                                  at               bricklayers from FLORIDA
                               visi.com            are out purchasing PENCIL
                                                   SHARPENERS right NOW??

             reply	other threads:[~2008-12-02 22:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-02 22:25 Grant Edwards [this message]
2008-12-02 22:35 ` Grant Edwards

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='gh4c5i$23o$1@ger.gmane.org' \
    --to=grante@visi.com \
    --cc=ecos-patches@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).