Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ia64/ia64 fix some confusion about PG_FAKE.



details:   https://anonhg.NetBSD.org/src/rev/27742249d0f3
branches:  trunk
changeset: 781303:27742249d0f3
user:      chs <chs%NetBSD.org@localhost>
date:      Fri Aug 31 14:31:46 2012 +0000

description:
fix some confusion about PG_FAKE.

diffstat:

 sys/arch/ia64/ia64/pmap.c |  20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)

diffs (62 lines):

diff -r 483c3bef75b6 -r 27742249d0f3 sys/arch/ia64/ia64/pmap.c
--- a/sys/arch/ia64/ia64/pmap.c Fri Aug 31 13:12:52 2012 +0000
+++ b/sys/arch/ia64/ia64/pmap.c Fri Aug 31 14:31:46 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.27 2010/11/12 07:59:26 uebayasi Exp $ */
+/* $NetBSD: pmap.c,v 1.28 2012/08/31 14:31:46 chs Exp $ */
 
 
 /*-
@@ -85,7 +85,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.27 2010/11/12 07:59:26 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.28 2012/08/31 14:31:46 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1239,9 +1239,6 @@
        pmap_t oldpmap;
        pv_entry_t pv;
 
-       if (pg->flags & PG_FAKE)
-               return rv;
-
        TAILQ_FOREACH(pv, &md->pv_list, pv_list) {
                PMAP_LOCK(pv->pv_pmap);
                oldpmap = pmap_install(pv->pv_pmap);
@@ -1448,7 +1445,7 @@
          * Enter on the PV list if part of our managed memory.
          */
 
-        if ((flags & (PG_FAKE)) == 0) {
+        if (pg != NULL) {
                 pmap_insert_entry(pmap, va, pg);
                 managed = true;
         }
@@ -1478,7 +1475,7 @@
 
 
 /*
- *     Routine:        pmap_page_purge: => was: pmap_remove_all
+ *     Routine:        pmap_page_purge
  *     Function:
  *             Removes this physical page from
  *             all physical maps in which it resides.
@@ -1497,15 +1494,6 @@
        pmap_t oldpmap;
        pv_entry_t pv;
 
-#if defined(DIAGNOSTIC)
-       /*
-        * XXX this makes pmap_page_protect(NONE) illegal for non-managed
-        * pages!
-        */
-       if (pg->flags & PG_FAKE) {
-               panic("pmap_page_protect: illegal for unmanaged page, va: 0x%lx", VM_PAGE_TO_PHYS(pg));
-       }
-#endif
        //UVM_LOCK_ASSERT_PAGEQ();
 
        while ((pv = TAILQ_FIRST(&md->pv_list)) != NULL) {



Home | Main Index | Thread Index | Old Index