diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 65ca2e3d924b..a47209ffe40c 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -645,6 +645,7 @@ vm_page_initfake(vm_page_t m, vm_paddr_t paddr, vm_memattr_t memattr) /* Fictitious pages don't use "order" or "pool". */ m->oflags = VPO_BUSY | VPO_UNMANAGED; m->wire_count = 1; + pmap_page_init(m); memattr: pmap_page_set_memattr(m, memattr); } diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c index b871d7936b53..66f3b0c540c2 100644 --- a/sys/vm/vm_phys.c +++ b/sys/vm/vm_phys.c @@ -559,7 +559,6 @@ vm_phys_fictitious_reg_range(vm_paddr_t start, vm_paddr_t end, } for (i = 0; i < page_count; i++) { vm_page_initfake(&fp[i], start + PAGE_SIZE * i, memattr); - pmap_page_init(&fp[i]); fp[i].oflags &= ~(VPO_BUSY | VPO_UNMANAGED); } mtx_lock(&vm_phys_fictitious_reg_mtx);