Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Mips32 icache vs dcache size typo
@ 2002-07-19 16:21 Jon Burgess
  0 siblings, 0 replies; only message in thread
From: Jon Burgess @ 2002-07-19 16:21 UTC (permalink / raw)
  To: linux-mips; +Cc: carstenl



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);
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-19 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-19 16:21 Mips32 icache vs dcache size typo Jon Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox