diff options
author | alc <alc@FreeBSD.org> | 2015-06-09 18:04:28 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2015-06-09 18:04:28 +0000 |
commit | cbefd9b195657f8741054c39aafa0d5a87cbb77c (patch) | |
tree | 45d84fdd0abdc3bc2182dc5688d25cdb9f19b0a2 /sys/amd64/amd64/pmap.c | |
parent | fbb65db559d0b64c307a0596093200c0290eedf3 (diff) | |
download | FreeBSD-src-cbefd9b195657f8741054c39aafa0d5a87cbb77c.zip FreeBSD-src-cbefd9b195657f8741054c39aafa0d5a87cbb77c.tar.gz |
Account for superpage mappings that are created by pmap_copy().
Diffstat (limited to 'sys/amd64/amd64/pmap.c')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 7f256cd..6a3de60 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -4844,6 +4844,7 @@ pmap_copy(pmap_t dst_pmap, pmap_t src_pmap, vm_offset_t dst_addr, vm_size_t len, PG_PS_FRAME, &lock))) { *pde = srcptepaddr & ~PG_W; pmap_resident_count_inc(dst_pmap, NBPDR / PAGE_SIZE); + atomic_add_long(&pmap_pde_mappings, 1); } else dstmpde->wire_count--; continue; |