Date: Fri, 6 Aug 2010 07:32:33 +0000 (UTC) From: "Jayachandran C." <jchandra@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/mips/include pmap.h src/sys/mips/mips pmap.c Message-ID: <201008060732.o767Wn1X038718@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jchandra 2010-08-06 07:32:33 UTC
FreeBSD src repository
Modified files:
sys/mips/include pmap.h
sys/mips/mips pmap.c
Log:
SVN rev 210914 on 2010-08-06 07:32:33Z by jchandra
Fix the issue reported by alc:
pmap_page_wired_mappings() counts the number of pv entries for the
specified page that have the pv entry wired flag set to TRUE.
pmap_enter() correctly initializes this flag. However,
pmap_change_wiring() doesn't update the corresponding pv entry flag,
only the PTE. So, the count returned by pmap_page_wired_mappings()
will sometimes be wrong.
In the short term, the best fix would be to eliminate the pv entry
flag and use only the PTE. That flag is wasting non-trivial memory.
Remove pv_wired flag, and use PTE flag to count the wired mappings.
Reviewed by: alc
Revision Changes Path
1.17 +0 -1 src/sys/mips/include/pmap.h
1.72 +10 -5 src/sys/mips/mips/pmap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008060732.o767Wn1X038718>
