Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips backout previous change.



details:   https://anonhg.NetBSD.org/src/rev/e8ae62ed6c76
branches:  trunk
changeset: 487931:e8ae62ed6c76
user:      shin <shin%NetBSD.org@localhost>
date:      Thu Jun 15 13:04:05 2000 +0000

description:
backout previous change.
cache operation in cpu_fork() is necessary for CPU's which
detect virtual alias by hardware (ex. R4000 with secondary cache).

diffstat:

 sys/arch/mips/mips/vm_machdep.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r ec4551608afc -r e8ae62ed6c76 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c   Thu Jun 15 12:37:07 2000 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c   Thu Jun 15 13:04:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.64 2000/06/14 22:17:59 soren Exp $    */
+/*     $NetBSD: vm_machdep.c,v 1.65 2000/06/15 13:04:05 shin Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.64 2000/06/14 22:17:59 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.65 2000/06/15 13:04:05 shin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -99,6 +99,16 @@
        pt_entry_t *pte;
        int i, x;
 
+#ifdef MIPS3
+       /*
+        * To eliminate virtual aliases created by pmap_zero_page(),
+        * this cache flush operation is necessary.
+        * VCED on kernel stack is not allowed.
+        */
+       if (CPUISMIPS3 && mips_L2CachePresent)
+               MachHitFlushDCache((vaddr_t)p2->p_addr, USPACE);
+#endif
+
 #ifdef DIAGNOSTIC
        /*
         * If p1 != curproc && p1 == &proc0, we're creating a kernel thread.



Home | Main Index | Thread Index | Old Index