linux-mips
[Top] [All Lists]

Re: how to clear the D_cache and I_cache in the MIPS linux ?

To: Arnaud Patard <apatard@mandriva.com>
Subject: Re: how to clear the D_cache and I_cache in the MIPS linux ?
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 22 Apr 2009 13:34:20 +0200
Cc: fredtan <tanflying@gmail.com>, linux-mips@linux-mips.org
In-reply-to: <m31vrlgdxf.fsf@anduin.mandriva.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <23172497.post@talk.nabble.com> <m31vrlgdxf.fsf@anduin.mandriva.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.18 (2008-05-17)
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 in Thread] Current Thread [Next in Thread>