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 remove panicstr KASSERT() in pmap_kremove_l...



details:   https://anonhg.NetBSD.org/src/rev/f79041e1f5e1
branches:  trunk
changeset: 354652:f79041e1f5e1
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Jun 23 23:40:00 2017 +0000

description:
remove panicstr KASSERT() in pmap_kremove_local() - kernel dump can legitimely
invoked also without panic - via reboot -d

fixes PR kern/49610 by Manuel Bouyer

diffstat:

 sys/arch/x86/x86/pmap.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r c4fc574bb347 -r f79041e1f5e1 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Fri Jun 23 21:28:38 2017 +0000
+++ b/sys/arch/x86/x86/pmap.c   Fri Jun 23 23:40:00 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.251 2017/06/15 18:15:53 christos Exp $      */
+/*     $NetBSD: pmap.c,v 1.252 2017/06/23 23:40:00 jdolecek Exp $      */
 
 /*
  * Copyright (c) 2008, 2010, 2016, 2017 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.251 2017/06/15 18:15:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.252 2017/06/23 23:40:00 jdolecek Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -1148,14 +1148,13 @@
 /*
  * pmap_kremove_local: like pmap_kremove(), but only worry about
  * TLB invalidations on the current CPU.  this is only intended
- * for use while writing kernel crash dumps.
+ * for use while writing kernel crash dumps, either after panic
+ * or via reboot -d.
  */
 
 void
 pmap_kremove_local(vaddr_t sva, vsize_t len)
 {
-
-       KASSERT(panicstr != NULL);
        pmap_kremove1(sva, len, true);
 }
 



Home | Main Index | Thread Index | Old Index