Correct a mistakenly inverted condition in r355833.
Noticed by: kib X-MFC with: r355833
This commit is contained in:
parent
37516d3b1b
commit
7c237b7c3a
@ -6336,7 +6336,7 @@ pmap_enter_pde(pmap_t pmap, vm_offset_t va, pd_entry_t newpde, u_int flags,
|
||||
("pmap_enter_pde: pdpg's reference count is too low"));
|
||||
if ((flags & PMAP_ENTER_NOREPLACE) != 0 && (va <
|
||||
VM_MAXUSER_ADDRESS || (oldpde & PG_PS) != 0 ||
|
||||
pmap_every_pte_zero(oldpde & PG_FRAME))) {
|
||||
!pmap_every_pte_zero(oldpde & PG_FRAME))) {
|
||||
if (pdpg != NULL)
|
||||
pdpg->ref_count--;
|
||||
CTR2(KTR_PMAP, "pmap_enter_pde: failure for va %#lx"
|
||||
|
@ -3644,7 +3644,7 @@ pmap_enter_l2(pmap_t pmap, vm_offset_t va, pd_entry_t new_l2, u_int flags,
|
||||
("pmap_enter_l2: l2pg's ref count is too low"));
|
||||
if ((flags & PMAP_ENTER_NOREPLACE) != 0 && (va <
|
||||
VM_MAXUSER_ADDRESS || (old_l2 & ATTR_DESCR_MASK) ==
|
||||
L2_BLOCK || pmap_every_pte_zero(old_l2 & ~ATTR_MASK))) {
|
||||
L2_BLOCK || !pmap_every_pte_zero(old_l2 & ~ATTR_MASK))) {
|
||||
if (l2pg != NULL)
|
||||
l2pg->ref_count--;
|
||||
CTR2(KTR_PMAP, "pmap_enter_l2: failure for va %#lx"
|
||||
|
Loading…
Reference in New Issue
Block a user