Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn26/acorn26 According to Chuck Silvers, pmap_co...



details:   https://anonhg.NetBSD.org/src/rev/33b7b318178c
branches:  trunk
changeset: 535380:33b7b318178c
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Fri Aug 16 21:16:48 2002 +0000

description:
According to Chuck Silvers, pmap_copy_page() and pmap_zero_page() don't
need to mess with the referenced and modified flags, since they're only
called when a page is being initialised, and is about to have them cleared.
Make this so.

diffstat:

 sys/arch/acorn26/acorn26/pmap.c |  15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diffs (49 lines):

diff -r 0462999be8d1 -r 33b7b318178c sys/arch/acorn26/acorn26/pmap.c
--- a/sys/arch/acorn26/acorn26/pmap.c   Fri Aug 16 20:21:48 2002 +0000
+++ b/sys/arch/acorn26/acorn26/pmap.c   Fri Aug 16 21:16:48 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.3 2002/04/12 18:50:30 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.4 2002/08/16 21:16:48 bjh21 Exp $ */
 /*-
  * Copyright (c) 1997, 1998, 2000 Ben Harris
  * All rights reserved.
@@ -102,7 +102,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.3 2002/04/12 18:50:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.4 2002/08/16 21:16:48 bjh21 Exp $");
 
 #include <sys/kernel.h> /* for cold */
 #include <sys/malloc.h>
@@ -1070,30 +1070,19 @@
 void
 pmap_zero_page(paddr_t pa)
 {
-       int ppn;
        UVMHIST_FUNC("pmap_zero_page");
 
        UVMHIST_CALLED(pmaphist);
        bzero(pmap_find(pa), PAGE_SIZE);
-       ppn = atop(pa);
-       pv_table[ppn].pv_pflags |= PV_MODIFIED | PV_REFERENCED;
-       pmap_update_page(ppn);
 }
 
 void
 pmap_copy_page(paddr_t src, paddr_t dest)
 {
-       int sppn, dppn;
        UVMHIST_FUNC("pmap_copy_page");
 
        UVMHIST_CALLED(pmaphist);
        memcpy(pmap_find(dest), pmap_find(src), PAGE_SIZE);
-       sppn = atop(src);
-       dppn = atop(dest);
-       pv_table[sppn].pv_pflags |= PV_REFERENCED;
-       pmap_update_page(sppn);
-       pv_table[dppn].pv_pflags |= PV_MODIFIED | PV_REFERENCED;
-       pmap_update_page(dppn);
 }
 
 #ifdef PMAP_DEBUG_MODIFIED



Home | Main Index | Thread Index | Old Index