mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-23 07:31:31 +00:00
Convert a PMAP_DIAGNOSTIC to a KASSERT.
This commit is contained in:
parent
497a8b25b5
commit
fa093ee242
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175155
@ -2075,15 +2075,8 @@ pmap_remove_all(vm_page_t m)
|
||||
pd_entry_t ptepde;
|
||||
vm_page_t free;
|
||||
|
||||
#if defined(PMAP_DIAGNOSTIC)
|
||||
/*
|
||||
* XXX This makes pmap_remove_all() illegal for non-managed pages!
|
||||
*/
|
||||
if (m->flags & PG_FICTITIOUS) {
|
||||
panic("pmap_remove_all: illegal for unmanaged page, va: 0x%lx",
|
||||
VM_PAGE_TO_PHYS(m));
|
||||
}
|
||||
#endif
|
||||
KASSERT((m->flags & PG_FICTITIOUS) == 0,
|
||||
("pmap_remove_all: page %p is fictitious", m));
|
||||
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
|
||||
while ((pv = TAILQ_FIRST(&m->md.pv_list)) != NULL) {
|
||||
pmap = PV_PMAP(pv);
|
||||
|
@ -2119,15 +2119,8 @@ pmap_remove_all(vm_page_t m)
|
||||
pt_entry_t *pte, tpte;
|
||||
vm_page_t free;
|
||||
|
||||
#if defined(PMAP_DIAGNOSTIC)
|
||||
/*
|
||||
* XXX This makes pmap_remove_all() illegal for non-managed pages!
|
||||
*/
|
||||
if (m->flags & PG_FICTITIOUS) {
|
||||
panic("pmap_remove_all: illegal for unmanaged page, va: 0x%x",
|
||||
VM_PAGE_TO_PHYS(m));
|
||||
}
|
||||
#endif
|
||||
KASSERT((m->flags & PG_FICTITIOUS) == 0,
|
||||
("pmap_remove_all: page %p is fictitious", m));
|
||||
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
|
||||
sched_pin();
|
||||
while ((pv = TAILQ_FIRST(&m->md.pv_list)) != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user