From: Ralf Baechle <ralf@linux-mips.org>
To: Arnaud Patard <apatard@mandriva.com>
Cc: fredtan <tanflying@gmail.com>, linux-mips@linux-mips.org
Subject: Re: how to clear the D_cache and I_cache in the MIPS linux ?
Date: Wed, 22 Apr 2009 13:34:20 +0200 [thread overview]
Message-ID: <20090422113420.GA17792@linux-mips.org> (raw)
In-Reply-To: <m31vrlgdxf.fsf@anduin.mandriva.com>
On Wed, Apr 22, 2009 at 12:50:36PM +0200, Arnaud Patard wrote:
> fredtan <tanflying@gmail.com> writes:
>
> > D_CACHE,then invalidate I_CACHE,then run the code. My MIPS does not have
> > SYNCI instruction,Cache
> >
> > instruction is a privilege instruction, the program has no right to use it.
> > So , What can I do ?
>
> use cacheflush()
It is preferable to always use cacheflush(). The plan is to eventually
enhance the cacheflush(3) library function to use SYNCI as applicable for
a particular platform.
Ralf
prev parent reply other threads:[~2009-04-22 12:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-22 9:08 how to clear the D_cache and I_cache in the MIPS linux ? fredtan
2009-04-22 10:50 ` Arnaud Patard
2009-04-22 11:34 ` Ralf Baechle [this message]
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=20090422113420.GA17792@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=apatard@mandriva.com \
--cc=linux-mips@linux-mips.org \
--cc=tanflying@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.