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 In pmap_map_chunk(), if we can't use a se...
details: https://anonhg.NetBSD.org/src/rev/35cb4f5e91fb
branches: trunk
changeset: 522550:35cb4f5e91fb
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Feb 21 06:36:11 2002 +0000
description:
In pmap_map_chunk(), if we can't use a section mapping, then
make sure that the L1 slot for the current VA points to an L2
table, and panic if it doesn't.
diffstat:
sys/arch/arm/arm32/pmap.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 8e454441695b -r 35cb4f5e91fb sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Thu Feb 21 06:33:05 2002 +0000
+++ b/sys/arch/arm/arm32/pmap.c Thu Feb 21 06:36:11 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.44 2002/02/21 05:25:24 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.45 2002/02/21 06:36:11 thorpej Exp $ */
/*
* Copyright (c) 2001 Richard Earnshaw
@@ -142,7 +142,7 @@
#include <machine/param.h>
#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.44 2002/02/21 05:25:24 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.45 2002/02/21 06:36:11 thorpej Exp $");
#ifdef PMAP_DEBUG
#define PDEBUG(_lev_,_stat_) \
if (pmap_debug_level >= (_lev_)) \
@@ -3824,6 +3824,15 @@
continue;
}
+ /*
+ * Ok, we're going to use an L2 table. Make sure
+ * one is actually in the corresponding L1 slot
+ * for the current VA.
+ */
+ if ((pde[va >> PDSHIFT] & L1_MASK) != L1_PAGE)
+ panic("pmap_map_chunk: no L2 table for VA 0x%08lx\n",
+ va);
+
/* See if we can use a L2 large page mapping. */
if (((pa | va) & (L2_LPAGE_SIZE - 1)) == 0 &&
resid >= L2_LPAGE_SIZE) {
Home |
Main Index |
Thread Index |
Old Index