Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/i386/i386 pullup 1.75->1.76 (chuq)



details:   https://anonhg.NetBSD.org/src/rev/fec0853763b0
branches:  netbsd-1-4
changeset: 468655:fec0853763b0
user:      perry <perry%NetBSD.org@localhost>
date:      Wed May 05 17:07:06 1999 +0000

description:
pullup 1.75->1.76 (chuq)

diffstat:

 sys/arch/i386/i386/vm_machdep.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r d37c4e2476a3 -r fec0853763b0 sys/arch/i386/i386/vm_machdep.c
--- a/sys/arch/i386/i386/vm_machdep.c   Wed May 05 17:05:44 1999 +0000
+++ b/sys/arch/i386/i386/vm_machdep.c   Wed May 05 17:07:06 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.75 1999/03/24 05:51:02 mrg Exp $      */
+/*     $NetBSD: vm_machdep.c,v 1.75.2.1 1999/05/05 17:07:06 perry Exp $        */
 
 /*-
  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
@@ -409,7 +409,6 @@
 {
        vaddr_t faddr, taddr, off;
        paddr_t fpa;
-       pt_entry_t *tpte;
 
        if ((bp->b_flags & B_PHYS) == 0)
                panic("vmapbuf");
@@ -430,13 +429,13 @@
         * where we we just allocated (TLB will be flushed when our
         * mapping is removed).
         */
-       tpte = PTE_BASE + i386_btop(taddr);
        while (len) {
                fpa = pmap_extract(vm_map_pmap(&bp->b_proc->p_vmspace->vm_map),
                                   faddr);
-               *tpte = fpa | PG_RW | PG_V | pmap_pg_g;
-               tpte++;
+               pmap_enter(vm_map_pmap(phys_map), taddr, fpa,
+                          VM_PROT_READ|VM_PROT_WRITE, TRUE, 0);
                faddr += PAGE_SIZE;
+               taddr += PAGE_SIZE;
                len -= PAGE_SIZE;
        }
 }



Home | Main Index | Thread Index | Old Index