summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-06-30 20:35:04 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-06-30 20:35:04 +0000
commit40d4b83041cadfdcc280108e1b8a3aa7db1b9a2f (patch)
tree9c043dfae2f3ddbec5954e1002659988efc7afd9 /sys/arch/sparc
parent3d75b404a06849fc5141e947365540f85daf0170 (diff)
Remove the ``never cache virtual addresses in the DVMA range'' in
pv_changepte4m() since DVMA addresses are never loaded in the SRMMU; this chunk was forgotten in the previous `don't steal DVMA out of kernel_map on 4m' commit.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/pmap.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c
index 5b7418978fd..d05914798d6 100644
--- a/sys/arch/sparc/sparc/pmap.c
+++ b/sys/arch/sparc/sparc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.155 2010/06/29 21:28:11 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.156 2010/06/30 20:35:03 miod Exp $ */
/* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */
/*
@@ -2005,6 +2005,8 @@ pv_changepte4_4c(pv0, bis, bic)
/*
* Bizarreness: we never clear PG_NC on
* DVMA pages.
+ * XXX should we ever get invoked on such
+ * XXX pages?
*/
if (bic == PG_NC &&
va >= DVMA_BASE && va < DVMA_END)
@@ -2314,13 +2316,6 @@ pv_changepte4m(pv0, bis, bic)
ptep = getptep4m(pm, va);
if (pm->pm_ctx) {
- /*
- * Bizarreness: we never set PG_C on DVMA pages.
- */
- if ((bis & SRMMU_PG_C) &&
- va >= DVMA_BASE && va < DVMA_END)
- continue;
-
setcontext4m(pm->pm_ctxnum);
/*