Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/usermode On entering an entry to pmap, act...



details:   https://anonhg.NetBSD.org/src/rev/eadd28f2e210
branches:  trunk
changeset: 769596:eadd28f2e210
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Thu Sep 15 14:55:23 2011 +0000

description:
On entering an entry to pmap, activate the entry directly if adding to an
already active pmap.

diffstat:

 sys/arch/usermode/usermode/pmap.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 7e7358f3caca -r eadd28f2e210 sys/arch/usermode/usermode/pmap.c
--- a/sys/arch/usermode/usermode/pmap.c Thu Sep 15 14:51:06 2011 +0000
+++ b/sys/arch/usermode/usermode/pmap.c Thu Sep 15 14:55:23 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.64 2011/09/15 14:45:22 reinoud Exp $ */
+/* $NetBSD: pmap.c,v 1.65 2011/09/15 14:55:23 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Reinoud Zandijk <reinoud%NetBSD.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.64 2011/09/15 14:45:22 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.65 2011/09/15 14:55:23 reinoud Exp $");
 
 #include "opt_memsize.h"
 #include "opt_kmempages.h"
@@ -724,7 +724,7 @@
        pv->pv_lpn    = lpn;
        pv->pv_prot   = prot;
        pv->pv_vflags = 0;
-       pv->pv_next   = NULL;
+       /* pv->pv_next   = NULL; */     /* might confuse linked list? */
        if (flags & PMAP_WIRED)
                pv->pv_vflags |= PV_WIRED;
 
@@ -748,6 +748,10 @@
 
        splx(s);
 
+       /* activate page directly when on active pmap */
+       if (pmap->pm_flags & PM_ACTIVE)
+               pmap_page_activate(pv);
+
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index