Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Add a KASERT that we're not overwriting a...
details: https://anonhg.NetBSD.org/src/rev/ca879d3ad554
branches: trunk
changeset: 969237:ca879d3ad554
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Feb 12 17:31:51 2020 +0000
description:
Add a KASERT that we're not overwriting anything in pmap_growkernel
diffstat:
sys/arch/arm/arm32/pmap.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 885792007694 -r ca879d3ad554 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Wed Feb 12 16:50:37 2020 +0000
+++ b/sys/arch/arm/arm32/pmap.c Wed Feb 12 17:31:51 2020 +0000
@@ -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 @@
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 */
Home |
Main Index |
Thread Index |
Old Index