summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-08-04 04:55:31 +0000
committeralc <alc@FreeBSD.org>2002-08-04 04:55:31 +0000
commit93ee0b7e933fea3dcfe0548a7000ca5812f52c1b (patch)
treea536dea2d6a846acdd826a1766f7eca81f36fd9d /sys
parent9cfc3cad4400c32e12ed50a0b389074811d51629 (diff)
downloadFreeBSD-src-93ee0b7e933fea3dcfe0548a7000ca5812f52c1b.zip
FreeBSD-src-93ee0b7e933fea3dcfe0548a7000ca5812f52c1b.tar.gz
o Request a wired page from vm_page_grab() in _pmap_allocpte().
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/pmap.c6
-rw-r--r--sys/i386/i386/pmap.c6
2 files changed, 2 insertions, 10 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 0f5df32..baa9e86 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -1317,15 +1317,11 @@ _pmap_allocpte(pmap, ptepindex)
* Find or fabricate a new pagetable page
*/
m = vm_page_grab(pmap->pm_pteobj, ptepindex,
- VM_ALLOC_ZERO | VM_ALLOC_RETRY);
+ VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_RETRY);
KASSERT(m->queue == PQ_NONE,
("_pmap_allocpte: %p->queue != PQ_NONE", m));
- if (m->wire_count == 0)
- cnt.v_wire_count++;
- m->wire_count++;
-
/*
* Increment the hold count for the page table page
* (denoting a new mapping.)
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 0f5df32..baa9e86 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -1317,15 +1317,11 @@ _pmap_allocpte(pmap, ptepindex)
* Find or fabricate a new pagetable page
*/
m = vm_page_grab(pmap->pm_pteobj, ptepindex,
- VM_ALLOC_ZERO | VM_ALLOC_RETRY);
+ VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_RETRY);
KASSERT(m->queue == PQ_NONE,
("_pmap_allocpte: %p->queue != PQ_NONE", m));
- if (m->wire_count == 0)
- cnt.v_wire_count++;
- m->wire_count++;
-
/*
* Increment the hold count for the page table page
* (denoting a new mapping.)
OpenPOWER on IntegriCloud