svn commit: r349183 - head/sys/arm64/arm64
Alan Cox
alc at FreeBSD.org
Wed Jun 19 03:33:01 UTC 2019
Author: alc
Date: Wed Jun 19 03:33:00 2019
New Revision: 349183
URL: https://svnweb.freebsd.org/changeset/base/349183
Log:
Correct an error in r349122. pmap_unwire() should update the pmap's wired
count, not its resident count.
X-MFC with: r349122
Modified:
head/sys/arm64/arm64/pmap.c
Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c Wed Jun 19 01:28:13 2019 (r349182)
+++ head/sys/arm64/arm64/pmap.c Wed Jun 19 03:33:00 2019 (r349183)
@@ -3777,8 +3777,8 @@ pmap_unwire(pmap_t pmap, vm_offset_t sva, vm_offset_t
*/
if (sva + L2_SIZE == va_next && eva >= va_next) {
atomic_clear_64(l2, ATTR_SW_WIRED);
- pmap_resident_count_dec(pmap, L2_SIZE /
- PAGE_SIZE);
+ pmap->pm_stats.wired_count -= L2_SIZE /
+ PAGE_SIZE;
continue;
} else if (pmap_demote_l2(pmap, l2, sva) == NULL)
panic("pmap_unwire: demotion failed");
More information about the svn-src-all
mailing list