diff options
author | 2014-03-21 21:39:35 +0000 | |
---|---|---|
committer | 2014-03-21 21:39:35 +0000 | |
commit | 1a0bb2c4c83d3add7d102a18aadec7ffabc8232e (patch) | |
tree | 0c39dcd830a6655a1f174c1868eb1ecbe5b3dd2b /sys/uvm/uvm_pmemrange.c | |
parent | Disable MS-CHAPv1 (RFC 2433) support. Undocumented; Microsoft dropped (diff) | |
download | wireguard-openbsd-1a0bb2c4c83d3add7d102a18aadec7ffabc8232e.tar.xz wireguard-openbsd-1a0bb2c4c83d3add7d102a18aadec7ffabc8232e.zip |
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/uvm/uvm_pmemrange.c')
-rw-r--r-- | sys/uvm/uvm_pmemrange.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/uvm/uvm_pmemrange.c b/sys/uvm/uvm_pmemrange.c index 4c20e0fe4ca..94dc842baa5 100644 --- a/sys/uvm/uvm_pmemrange.c +++ b/sys/uvm/uvm_pmemrange.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_pmemrange.c,v 1.37 2014/02/06 16:40:40 tedu Exp $ */ +/* $OpenBSD: uvm_pmemrange.c,v 1.38 2014/03/21 21:39:36 miod Exp $ */ /* * Copyright (c) 2009, 2010 Ariane van der Steldt <ariane@stack.nl> @@ -68,8 +68,7 @@ * this check in pages which are freed. */ #define VALID_FLAGS(pg_flags) \ - (((pg_flags) & ~(PQ_FREE|PG_ZERO| \ - PG_PMAP0|PG_PMAP1|PG_PMAP2|PG_PMAP3)) == 0x0) + (((pg_flags) & ~(PQ_FREE|PG_ZERO|PG_PMAPMASK)) == 0x0) /* Tree comparators. */ int uvm_pmemrange_addr_cmp(struct uvm_pmemrange *, struct uvm_pmemrange *); @@ -1043,8 +1042,7 @@ out: diag_prev = NULL; #endif /* DIAGNOSTIC */ TAILQ_FOREACH(found, result, pageq) { - atomic_clearbits_int(&found->pg_flags, - PG_PMAP0|PG_PMAP1|PG_PMAP2|PG_PMAP3); + atomic_clearbits_int(&found->pg_flags, PG_PMAPMASK); if (found->pg_flags & PG_ZERO) { uvmexp.zeropages--; |