Correction to the previous revision: I forgot to apply the ones complement
to a constant. This didn't show in testing because the broken expression produced the same result in my tests as the correct expression.
This commit is contained in:
parent
6222ded017
commit
3c3e8d1100
@ -769,7 +769,7 @@ static __inline void
|
||||
pmap_pte_release(pt_entry_t *pte)
|
||||
{
|
||||
|
||||
if ((pt_entry_t *)((vm_offset_t)pte & PAGE_MASK) == PADDR2)
|
||||
if ((pt_entry_t *)((vm_offset_t)pte & ~PAGE_MASK) == PADDR2)
|
||||
mtx_unlock(&PMAP2mutex);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user