Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx pmap_enter_pv(): At the moment, this...



details:   https://anonhg.NetBSD.org/src/rev/c175f465cbfe
branches:  trunk
changeset: 1023381:c175f465cbfe
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Sep 05 12:28:44 2021 +0000

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

diffstat:

 sys/arch/powerpc/ibm4xx/pmap.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 6f296eb45d77 -r c175f465cbfe sys/arch/powerpc/ibm4xx/pmap.c
--- a/sys/arch/powerpc/ibm4xx/pmap.c    Sun Sep 05 12:23:40 2021 +0000
+++ b/sys/arch/powerpc/ibm4xx/pmap.c    Sun Sep 05 12:28:44 2021 +0000
@@ -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 @@
        struct pv_entry *pv, *npv;
        int s;
 
-       if (!pmap_initialized)
-               return 0;
+       KASSERT(pmap_initialized);
 
        s = splvm();
 



Home | Main Index | Thread Index | Old Index