patch-1.3.96 linux/arch/sparc/mm/srmmu.c

Next file: linux/arch/sparc/prom/memory.c
Previous file: linux/arch/sparc/mm/init.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.95/linux/arch/sparc/mm/srmmu.c linux/arch/sparc/mm/srmmu.c
@@ -1,4 +1,4 @@
-/* $Id: srmmu.c,v 1.59 1996/04/21 10:32:21 davem Exp $
+/* $Id: srmmu.c,v 1.62 1996/04/25 09:11:47 davem Exp $
  * srmmu.c:  SRMMU specific routines for memory management.
  *
  * Copyright (C) 1995 David S. Miller  (davem@caip.rutgers.edu)
@@ -604,11 +604,14 @@
 /* Tsunami does not have a Copy-back style virtual cache. */
 static void tsunami_flush_page_to_ram(unsigned long page)
 {
+	tsunami_flush_icache();
+	tsunami_flush_dcache();
 }
 
 /* However, Tsunami is not IO coherent. */
 static void tsunami_flush_page_for_dma(unsigned long page)
 {
+	tsunami_flush_icache();
 	tsunami_flush_dcache();
 }
 
@@ -805,7 +808,6 @@
 
 static void viking_flush_cache_all(void)
 {
-	viking_flush_icache();
 }
 
 static void viking_flush_cache_mm(struct mm_struct *mm)
@@ -814,7 +816,6 @@
 	if(mm->context != NO_CONTEXT) {
 #endif
 		flush_user_windows();
-		viking_flush_icache();
 #ifndef __SMP__
 	}
 #endif
@@ -826,7 +827,6 @@
 	if(mm->context != NO_CONTEXT) {
 #endif
 		flush_user_windows();
-		viking_flush_icache();
 #ifndef __SMP__
 	}
 #endif
@@ -839,8 +839,6 @@
 	if(mm->context != NO_CONTEXT) {
 #endif
 		flush_user_windows();
-		if(vma->vm_flags & VM_EXEC)
-			viking_flush_icache();
 #ifndef __SMP__
 	}
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this