linux-mips
[Top] [All Lists]

Re: dcache issue...

To: moreau francis <francis_moreau2000@yahoo.fr>
Subject: Re: dcache issue...
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 20 Jan 2005 14:49:22 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <20050120111543.38076.qmail@web25105.mail.ukl.yahoo.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20050120111543.38076.qmail@web25105.mail.ukl.yahoo.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Thu, Jan 20, 2005 at 12:15:43PM +0100, moreau francis wrote:

> I almost done to run linux in kseg2. But I noticed a
> bug
> related to the cache that I can't explain. Maybe
> you'll
> have an idea...
> 
> I configured kseg2 to map kernel space, and to be
> "uncached". So when accessing kernel space, virtual
> addr > 0xc0000000, I don't use both icache and dcache.
> When kernel maps a user page in user space, it uses
> data cache. In this scenario, some kernel data are
> corrupted. But when I map kernel space and activate
> caches to access it, it seems to work.

Live is tough, use caches ;-)

Mixing different cache modes for results in unspecified behaviour, such
as data corruption.

  Ralf

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