o Request a wired page from vm_page_grab() in _pmap_allocpte().
This commit is contained in:
parent
526b145c23
commit
ea5e5b13f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101294
@ -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.)
|
||||
|
@ -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.)
|
||||
|
Loading…
Reference in New Issue
Block a user