linux-mips
[Top] [All Lists]

Re: a quick question regarding CONFIG_MIPS_UNCACHED..

To: atul srivastava <atulsrivastava9@rediffmail.com>
Subject: Re: a quick question regarding CONFIG_MIPS_UNCACHED..
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Thu, 28 Nov 2002 16:51:57 +0100 (MET)
Cc: linux-mips@linux-mips.org
In-reply-to: <20021127091114.27117.qmail@webmail24.rediffmail.com>
Organization: Technical University of Gdansk
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
On 27 Nov 2002, atul srivastava wrote:

> following is the relevant code:--
> 
> #ifdef CONFIG_MIPS_UNCACHED
>          change_cp0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
> #else
>          change_cp0_config(CONF_CM_CMASK, 
> CONF_CM_CACHABLE_NONCOHERENT);
> #endif

 You are looking at obsolete code -- unless you have specific conditions
to use an explicit caching attribute for KSEG0, you should set it like the
rest of the code does it, i.e.:

change_cp0_config(CONF_CM_CMASK, CONF_CM_DEFAULT);

To avoid surprises here and elsewhere, you should make sure
CONFIG_NONCOHERENT_IO is set appropriately, too.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


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