Module Name: src Committed By: jdolecek Date: Fri Jun 23 23:40:00 UTC 2017
Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: 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 To generate a diff of this commit: cvs rdiff -u -r1.251 -r1.252 src/sys/arch/x86/x86/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/pmap.c diff -u src/sys/arch/x86/x86/pmap.c:1.251 src/sys/arch/x86/x86/pmap.c:1.252 --- src/sys/arch/x86/x86/pmap.c:1.251 Thu Jun 15 18:15:53 2017 +++ src/sys/arch/x86/x86/pmap.c Fri Jun 23 23:40:00 2017 @@ -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(vaddr_t sva, vsize_t len) /* * 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); }