Initialize the L3 page's wire count correctly after a L2 entry demotion.
Reviewed by: alc MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D16303
This commit is contained in:
parent
c0ec351d24
commit
a8c7d78955
@ -4784,6 +4784,7 @@ pmap_demote_l2_locked(pmap_t pmap, pt_entry_t *l2, vm_offset_t va,
|
||||
* If the page table page is new, initialize it.
|
||||
*/
|
||||
if (ml3->wire_count == 1) {
|
||||
ml3->wire_count = NL3PG;
|
||||
for (i = 0; i < Ln_ENTRIES; i++) {
|
||||
l3[i] = newl3 | phys;
|
||||
phys += L3_SIZE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user