linux-mips
[Top] [All Lists]

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

To: fredtan <tanflying@gmail.com>
Subject: Re: how to clear the D_cache and I_cache in the MIPS linux ?
From: Arnaud Patard <apatard@mandriva.com>
Date: Wed, 22 Apr 2009 12:50:36 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <23172497.post@talk.nabble.com> (fredtan's message of "Wed, 22 Apr 2009 02:08:13 -0700 (PDT)")
Organization: Mandriva
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <23172497.post@talk.nabble.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (gnu/linux)
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()

Arnaud

<Prev in Thread] Current Thread [Next in Thread>