diff options
author | alc <alc@FreeBSD.org> | 2004-10-03 00:16:43 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-10-03 00:16:43 +0000 |
commit | c4db706631d6435563c38ac0b9ba4acbbfddccb6 (patch) | |
tree | 27b4e9b53e3574041a395765b40e28254a7d3fc3 /sys/ia64 | |
parent | 7ac950b1172f3d9213061f3918e5cd1c96ef5c43 (diff) | |
download | FreeBSD-src-c4db706631d6435563c38ac0b9ba4acbbfddccb6.zip FreeBSD-src-c4db706631d6435563c38ac0b9ba4acbbfddccb6.tar.gz |
The physical address stored in the vm_page is page aligned. There is no
need to mask off the page offset bits. (This operation made some sense
prior to i386/i386/pmap.c revision 1.254 when we passed a physical address
rather than a vm_page pointer to pmap_enter().)
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index 1eb2578..15ade60 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -1526,7 +1526,7 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot, origpte = *pte; opa = (pmap_lpte_present(&origpte)) ? pmap_lpte_ppn(&origpte) : 0UL; managed = FALSE; - pa = VM_PAGE_TO_PHYS(m) & ~PAGE_MASK; + pa = VM_PAGE_TO_PHYS(m); /* * Mapping has not changed, must be protection or wiring change. |