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:
Alan Cox 2004-09-01 19:04:09 +00:00
parent 6222ded017
commit 3c3e8d1100

View File

@ -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);
}