| To: | Jun Sun <jsun@mvista.com> |
|---|---|
| Subject: | Re: Turning off cache ... |
| From: | Ralf Baechle <ralf@oss.sgi.com> |
| Date: | Fri, 28 Jul 2000 03:08:36 +0200 |
| Cc: | linux-mips@fnet.fr, linux@cthulhu.engr.sgi.com, ralf@oss.sgi.com |
| In-reply-to: | <3980D95A.5949E980@mvista.com>; from jsun@mvista.com on Thu, Jul 27, 2000 at 05:52:42PM -0700 |
| References: | <3980D95A.5949E980@mvista.com> |
| Sender: | owner-linux-mips@oss.sgi.com |
On Thu, Jul 27, 2000 at 05:52:42PM -0700, Jun Sun wrote:
> Is there is easy way to turn off caching entirely? I understand I need
> to set k0 bits in config register. What about those C bits in TLB
> entries? My CPU only has primary cache.
The C bits are per page, the k0 bits are for KSEG0. If you want to
turn of caching, then you need to:
- change the k0 bits to uncached on startup, then flush the caches or a
writeback might corrupt your data.
- change the caching mode of the usermode pages by modifying the
definitions for PAGE_NONE etc. in pgtable.h.
- comment out the cache Create_Dirty_Exclusive instructions in r4xx0.c,
using them on uncached pages would corrupt data.
Which will make the kernel crawl awfully ...
Ralf
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Turning off cache ..., Jun Sun |
|---|---|
| Next by Date: | Re: strace on Linux/MIPS?, Jun Sun |
| Previous by Thread: | Turning off cache ..., Jun Sun |
| Next by Thread: | Re: Turning off cache ..., Jun Sun |
| Indexes: | [Date] [Thread] [Top] [All Lists] |