Explicitely panic instead of possibly doing undefined things when

ptelist KVA is exhausted.  Currently this cannot happen, the added
panic serves as assert.

Discussed with:	alc
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2013-07-11 05:15:30 +00:00
parent 3fb25770a9
commit 30dac21d0a

View File

@ -680,7 +680,7 @@ pmap_ptelist_alloc(vm_offset_t *head)
va = *head;
if (va == 0)
return (va); /* Out of memory */
panic("pmap_ptelist_alloc: exhausted ptelist KVA");
pte = vtopte(va);
*head = *pte;
if (*head & PG_V)