Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 don't mess with the PDP pool cache before i...



details:   https://anonhg.NetBSD.org/src/rev/7718093de97f
branches:  trunk
changeset: 773233:7718093de97f
user:      drochner <drochner%NetBSD.org@localhost>
date:      Sun Jan 29 11:45:37 2012 +0000

description:
don't mess with the PDP pool cache before it is initialized,
prevents at least LOCKDEBUG panics

diffstat:

 sys/arch/x86/x86/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 43e2dbe993ad -r 7718093de97f sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Sun Jan 29 11:44:54 2012 +0000
+++ b/sys/arch/x86/x86/pmap.c   Sun Jan 29 11:45:37 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.159 2012/01/29 11:37:44 cherry Exp $        */
+/*     $NetBSD: pmap.c,v 1.160 2012/01/29 11:45:37 drochner Exp $      */
 
 /*-
  * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.159 2012/01/29 11:37:44 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.160 2012/01/29 11:45:37 drochner Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -4275,7 +4275,7 @@
        mutex_exit(kpm->pm_lock);
        splx(s);
 
-       if (invalidate) {
+       if (invalidate && pmap_initialized) {
                /* Invalidate the PDP cache. */
                pool_cache_invalidate(&pmap_pdp_cache);
        }



Home | Main Index | Thread Index | Old Index