diff options
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index aa51390..791060a 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.244 1999/07/31 23:02:57 alc Exp $ + * $Id: pmap.c,v 1.245 1999/08/10 04:10:57 alc Exp $ */ /* @@ -1268,11 +1268,8 @@ _pmap_allocpte(pmap, ptepindex) m = vm_page_grab(pmap->pm_pteobj, ptepindex, VM_ALLOC_ZERO | VM_ALLOC_RETRY); - if (m->queue != PQ_NONE) { - int s = splvm(); - vm_page_unqueue(m); - splx(s); - } + KASSERT(m->queue == PQ_NONE, + ("_pmap_allocpte: %p->queue != PQ_NONE", m)); if (m->wire_count == 0) cnt.v_wire_count++; |