linux-mips
[Top] [All Lists]

Mips32 icache vs dcache size typo

To: linux-mips@oss.sgi.com
Subject: Mips32 icache vs dcache size typo
From: "Jon Burgess" <Jon_Burgess@eur.3com.com>
Date: Fri, 19 Jul 2002 17:21:09 +0100
Cc: carstenl@mips.com
Sender: owner-linux-mips@oss.sgi.com

The patch below fixes what looks like a typo on mips32_flush_icache_page() which
uses 'dcache_size' instead of 'icache_size'. The patch is part of the one sent
by Carsten and the same fix was included in a kernel supplied to us by Broadcom.
I haven't had a chance to try the rest of the patch suggested by Carsten yet,
but this looks like an important fix for processors where dcache_size !=
icache_size.

     Jon Burgess


--- arch/mips/mm/c-mips32.c~  Wed May 29 05:03:17 2002
+++ arch/mips/mm/c-mips32.c   Thu Jul 11 09:55:08 2002
@@ -303,7 +303,7 @@
     if (!(vma->vm_flags & VM_EXEC))
          return;

-    address = KSEG0 + ((unsigned long)page_address(page) & PAGE_MASK &
(dcache_size - 1));
+    address = KSEG0 + ((unsigned long)page_address(page) & PAGE_MASK &
(icache_size - 1));
     blast_icache_page_indexed(address);
 }




<Prev in Thread] Current Thread [Next in Thread>
  • Mips32 icache vs dcache size typo, Jon Burgess <=