summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-03-21 21:39:37 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-03-21 21:39:37 +0000
commit57bc6cc4323fa81fea8daebe464192763080ded1 (patch)
treeb9aa9f60a7008abd970afa0a9c86fba0d7e443d5 /sys/arch
parentc8c7123fd02a9c573056292408114c9a2bab640f (diff)
Allow for two more pmap-specific bits in vm_page pg_flags. Define
PG_PMAPMASK as all the possible pmap-specific bits (similar to the other PG_fooMASK) to make sure MI code does not need to be updated, the next time more bits are allocated to greedy pmaps. No functional change, soon to be used by the (greedy) mips64 pmap.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mips64/mips64/pmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c
index 21ef6dd20ba..715fb082a67 100644
--- a/sys/arch/mips64/mips64/pmap.c
+++ b/sys/arch/mips64/mips64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.69 2014/03/10 21:17:58 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.70 2014/03/21 21:39:35 miod Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -1659,8 +1659,7 @@ pmap_remove_pv(pmap_t pmap, vaddr_t va, paddr_t pa)
} else {
pv->pv_pmap = NULL;
atomic_clearbits_int(&pg->pg_flags,
- (PG_PMAP0 | PG_PMAP1 | PG_PMAP2 | PG_PMAP3) &
- ~PV_PRESERVE);
+ PG_PMAPMASK & ~PV_PRESERVE);
}
stat_count(remove_stats.pvfirst);
} else {