Module Name:    src
Committed By:   rin
Date:           Sun Sep  5 12:28:44 UTC 2021

Modified Files:
        src/sys/arch/powerpc/ibm4xx: pmap.c

Log Message:
pmap_enter_pv(): At the moment, this function is always called with
pmap_initialized. So, convert test for this condition to KASSERT.


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/arch/powerpc/ibm4xx/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/powerpc/ibm4xx/pmap.c
diff -u src/sys/arch/powerpc/ibm4xx/pmap.c:1.102 src/sys/arch/powerpc/ibm4xx/pmap.c:1.103
--- src/sys/arch/powerpc/ibm4xx/pmap.c:1.102	Sun Sep  5 12:23:40 2021
+++ src/sys/arch/powerpc/ibm4xx/pmap.c	Sun Sep  5 12:28:44 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.102 2021/09/05 12:23:40 rin Exp $	*/
+/*	$NetBSD: pmap.c,v 1.103 2021/09/05 12:28:44 rin Exp $	*/
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.102 2021/09/05 12:23:40 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.103 2021/09/05 12:28:44 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -709,8 +709,7 @@ pmap_enter_pv(struct pmap *pm, vaddr_t v
 	struct pv_entry *pv, *npv;
 	int s;
 
-	if (!pmap_initialized)
-		return 0;
+	KASSERT(pmap_initialized);
 
 	s = splvm();
 

Reply via email to