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 Take a straight way for pagemove() PTE ma...



details:   https://anonhg.NetBSD.org/src/rev/8d28a74b6e57
branches:  trunk
changeset: 485980:8d28a74b6e57
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Wed May 10 08:55:22 2000 +0000

description:
Take a straight way for pagemove() PTE manipulation, abandoning to
use MIPS_TBRPL().  When PTEs are modified, both src and dst TLBs
are invalidated.  MIPS3 single TLB entry has paired double PTE
and pagemove() likely walks through multiple pages.  The positive
effect of of MachTLBUpdate() or TBRPL() is unclear.

diffstat:

 sys/arch/mips/mips/vm_machdep.c |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (35 lines):

diff -r f18b42f7627a -r 8d28a74b6e57 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c   Wed May 10 08:39:58 2000 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c   Wed May 10 08:55:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.56 2000/04/16 10:08:32 nisimura Exp $ */
+/*     $NetBSD: vm_machdep.c,v 1.57 2000/05/10 08:55:22 nisimura 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.56 2000/04/16 10:08:32 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.57 2000/05/10 08:55:22 nisimura Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -296,15 +296,8 @@
        while (size > 0) {
                tpte->pt_entry = fpte->pt_entry;
                fpte->pt_entry = invalid;
-#if defined(MIPS1) && !defined(MIPS3)
-       {
-               extern void mips1_TBRPL(vaddr_t, vaddr_t, paddr_t);
-               mips1_TBRPL((vaddr_t)from, (vaddr_t)to, tpte->pt_entry);
-       }
-#else
                MIPS_TBIS((vaddr_t)from);
-               MachTLBUpdate((vaddr_t)to, tpte->pt_entry);
-#endif
+               MIPS_TBIS((vaddr_t)to);
                fpte++; tpte++;
                size -= PAGE_SIZE;
                from += PAGE_SIZE;



Home | Main Index | Thread Index | Old Index