diff options
author | alc <alc@FreeBSD.org> | 2004-09-01 19:04:09 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-09-01 19:04:09 +0000 |
commit | cddfbc44fa83e820972b92c7dba1229ecfcecb44 (patch) | |
tree | 722c8ecea4dcb6f35cdcef4c925af0cf17134474 | |
parent | ecf87479deb0fdd377689754437eed4a6c6f1c8a (diff) | |
download | FreeBSD-src-cddfbc44fa83e820972b92c7dba1229ecfcecb44.zip FreeBSD-src-cddfbc44fa83e820972b92c7dba1229ecfcecb44.tar.gz |
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.
-rw-r--r-- | sys/i386/i386/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 74b2617..b1eae2c 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); } |