_pmap_allocpte:

If the pte page isn't PQ_NONE, panic rather than silently
	covering up the problem.
This commit is contained in:
Alan Cox 1999-08-11 19:19:04 +00:00
parent edad54782b
commit 7308467da9
3 changed files with 9 additions and 18 deletions

View File

@ -43,7 +43,7 @@
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* from: i386 Id: pmap.c,v 1.193 1998/04/19 15:22:48 bde Exp
* with some ideas from NetBSD's alpha pmap
* $Id: pmap.c,v 1.28 1999/07/21 18:01:26 alc Exp $
* $Id: pmap.c,v 1.29 1999/07/31 23:02:52 alc Exp $
*/
/*
@ -1385,11 +1385,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++;

View File

@ -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++;

View File

@ -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++;