From 3c3e8d110030cae04e82580e928cd14efc69cbd2 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 1 Sep 2004 19:04:09 +0000 Subject: [PATCH] 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. --- sys/i386/i386/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 74b26177ff54..b1eae2c7f1c9 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -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); }