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/mac68k/mac68k pullup 1.54->1.55 (chuq)



details:   https://anonhg.NetBSD.org/src/rev/c865ec36e0b8
branches:  netbsd-1-4
changeset: 468459:c865ec36e0b8
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Apr 26 14:46:44 1999 +0000

description:
pullup 1.54->1.55 (chuq)

diffstat:

 sys/arch/mac68k/mac68k/pmap.c |  17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diffs (35 lines):

diff -r 9b0f2802d253 -r c865ec36e0b8 sys/arch/mac68k/mac68k/pmap.c
--- a/sys/arch/mac68k/mac68k/pmap.c     Mon Apr 26 14:44:06 1999 +0000
+++ b/sys/arch/mac68k/mac68k/pmap.c     Mon Apr 26 14:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.52.2.1 1999/04/21 14:56:47 perry Exp $      */
+/*     $NetBSD: pmap.c,v 1.52.2.2 1999/04/26 14:46:44 perry Exp $      */
 
 /*
  * Copyright (c) 1991, 1993
@@ -1701,20 +1701,15 @@
                }
 #endif
                /*
-                * Mark it unmodified to avoid pageout
+                * page is unused, free it now!
                 */
-               pmap_changebit(pa, 0, ~PG_M);
+               pmap_remove_mapping(pv->pv_pmap, pv->pv_va,
+                                   NULL, PRM_TFLUSH|PRM_CFLUSH);
+               uvm_pagefree(PHYS_TO_VM_PAGE(pa));
 #ifdef DEBUG
-               if ((PHYS_TO_VM_PAGE(pa)->flags & PG_CLEAN) == 0) {
-                       printf("pa %lx: flags=%x: not clean\n",
-                              pa, PHYS_TO_VM_PAGE(pa)->flags);
-                       PHYS_TO_VM_PAGE(pa)->flags |= PG_CLEAN;
-               }
                if (pmapdebug & PDB_PTPAGE)
-                       printf("pmap_pageable: PT page %lx(%x) unmodified\n",
+                       printf("pmap_pageable: PT page %lx(%x) freed\n",
                               sva, *pmap_pte(pmap, sva));
-               if (pmapdebug & PDB_WIRING)
-                       pmap_check_wiring("pageable", sva);
 #endif
        }
 }



Home | Main Index | Thread Index | Old Index