summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-03-21 21:39:35 +0000
committermiod <miod@openbsd.org>2014-03-21 21:39:35 +0000
commit1a0bb2c4c83d3add7d102a18aadec7ffabc8232e (patch)
tree0c39dcd830a6655a1f174c1868eb1ecbe5b3dd2b /sys/kern/subr_hibernate.c
parentDisable MS-CHAPv1 (RFC 2433) support. Undocumented; Microsoft dropped (diff)
downloadwireguard-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/kern/subr_hibernate.c')
-rw-r--r--sys/kern/subr_hibernate.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index 4d0efd949c6..cc59ead8463 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.85 2014/03/13 03:52:56 dlg Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.86 2014/03/21 21:39:36 miod Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -407,8 +407,7 @@ found:
while (sz > 0) {
KASSERT(pg->pg_flags & PQ_FREE);
- atomic_clearbits_int(&pg->pg_flags,
- PG_PMAP0|PG_PMAP1|PG_PMAP2|PG_PMAP3);
+ atomic_clearbits_int(&pg->pg_flags, PG_PMAPMASK);
if (pg->pg_flags & PG_ZERO)
uvmexp.zeropages -= sz;
@@ -524,8 +523,7 @@ found:
TAILQ_FOREACH(pg, &pageq, pageq) {
KASSERT(pg->pg_flags & PQ_FREE);
- atomic_clearbits_int(&pg->pg_flags,
- PG_PMAP0|PG_PMAP1|PG_PMAP2|PG_PMAP3);
+ atomic_clearbits_int(&pg->pg_flags, PG_PMAPMASK);
if (pg->pg_flags & PG_ZERO)
uvmexp.zeropages--;