mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
In pmap_remove_all() assert that the page is neither fictitious nor
unmanaged as also done on other architectures. Reviewed by: alc
This commit is contained in:
parent
ca7122622b
commit
63db5ba435
1 changed files with 2 additions and 0 deletions
|
|
@ -1387,6 +1387,8 @@ pmap_remove_all(vm_page_t m)
|
|||
struct tte *tp;
|
||||
vm_offset_t va;
|
||||
|
||||
KASSERT((m->flags & (PG_FICTITIOUS | PG_UNMANAGED)) == 0,
|
||||
("pmap_remove_all: page %p is not managed", m));
|
||||
vm_page_lock_queues();
|
||||
for (tp = TAILQ_FIRST(&m->md.tte_list); tp != NULL; tp = tpn) {
|
||||
tpn = TAILQ_NEXT(tp, tte_link);
|
||||
|
|
|
|||
Loading…
Reference in a new issue