Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun2/sun2 Don't unmap the PROM's first four physica...
details: https://anonhg.NetBSD.org/src/rev/c01e3b0b17d0
branches: trunk
changeset: 511796:c01e3b0b17d0
user: fredette <fredette%NetBSD.org@localhost>
date: Wed Jun 27 03:41:27 2001 +0000
description:
Don't unmap the PROM's first four physical/virtual pages
inside pmap_bootstrap, instead we will wait until we have
installed our vector table.
diffstat:
sys/arch/sun2/sun2/pmap.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r 7c760f1cd0f5 -r c01e3b0b17d0 sys/arch/sun2/sun2/pmap.c
--- a/sys/arch/sun2/sun2/pmap.c Wed Jun 27 03:32:49 2001 +0000
+++ b/sys/arch/sun2/sun2/pmap.c Wed Jun 27 03:41:27 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.12 2001/06/19 12:59:17 wiz Exp $ */
+/* $NetBSD: pmap.c,v 1.13 2001/06/27 03:41:27 fredette Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -1684,12 +1684,13 @@
/*
* Physical/virtual pages zero through three are used by the
- * PROM. prom_init has already saved the PTEs, now we get
- * to unmap the pages.
+ * PROM. prom_init has already saved the PTEs, but we don't
+ * want to unmap the pages until we've installed our own
+ * vector table - just in case something happens before then
+ * and we drop into the PROM.
*/
eva = va + NBPG * 4;
- for(; va < eva; va += NBPG)
- set_pte(va, PG_INVAL);
+ va = eva;
/*
* We use pages four through seven for the msgbuf.
Home |
Main Index |
Thread Index |
Old Index