From 4d6346565840def12b98776f77b19a0827bb76a0 Mon Sep 17 00:00:00 2001 From: rin Date: Sun, 5 Sep 2021 12:28:44 +0000 Subject: [PATCH] pmap_enter_pv(): At the moment, this function is always called with pmap_initialized. So, convert test for this condition to KASSERT. --- sys/arch/powerpc/ibm4xx/pmap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/arch/powerpc/ibm4xx/pmap.c b/sys/arch/powerpc/ibm4xx/pmap.c index 98da6d89f2cf..f0becb6f65ce 100644 --- a/sys/arch/powerpc/ibm4xx/pmap.c +++ b/sys/arch/powerpc/ibm4xx/pmap.c @@ -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 -__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 va, paddr_t pa, int flags) struct pv_entry *pv, *npv; int s; - if (!pmap_initialized) - return 0; + KASSERT(pmap_initialized); s = splvm();