Module Name: src Committed By: skrll Date: Wed Feb 12 17:31:51 UTC 2020
Modified Files: src/sys/arch/arm/arm32: pmap.c Log Message: Add a KASERT that we're not overwriting anything in pmap_growkernel To generate a diff of this commit: cvs rdiff -u -r1.389 -r1.390 src/sys/arch/arm/arm32/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/arm/arm32/pmap.c diff -u src/sys/arch/arm/arm32/pmap.c:1.389 src/sys/arch/arm/arm32/pmap.c:1.390 --- src/sys/arch/arm/arm32/pmap.c:1.389 Wed Feb 12 16:08:19 2020 +++ src/sys/arch/arm/arm32/pmap.c Wed Feb 12 17:31:51 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.389 2020/02/12 16:08:19 skrll Exp $ */ +/* $NetBSD: pmap.c,v 1.390 2020/02/12 17:31:51 skrll Exp $ */ /* * Copyright 2003 Wasabi Systems, Inc. @@ -198,7 +198,7 @@ #endif #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.389 2020/02/12 16:08:19 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.390 2020/02/12 17:31:51 skrll Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -5978,6 +5978,7 @@ pmap_growkernel(vaddr_t maxkvaddr) const pd_entry_t npde = L1_C_PROTO | l2b->l2b_pa | L1_C_DOM(PMAP_DOMAIN_KERNEL); #ifdef ARM_MMU_EXTENDED + KASSERT(*pdep == 0); l1pte_setone(pdep, npde); #else /* Distribute new L1 entry to all other L1s */