]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Port the new PV entry allocator from amd64/i386. This allocator has two
authorAlan Cox <alc@FreeBSD.org>
Mon, 13 Aug 2012 17:38:38 +0000 (17:38 +0000)
committerAlan Cox <alc@FreeBSD.org>
Mon, 13 Aug 2012 17:38:38 +0000 (17:38 +0000)
commitf167c4a762aee8782bae01fcab1cb8915bf4a5f3
tree37b978765c9357705d31ef9ad9687aa9eaa1925c
parenta4284ef768a5e0d25dea69650863ae452b38feee
Port the new PV entry allocator from amd64/i386.  This allocator has two
advantages.  First, PV entries are roughly half the size.  Second, this
allocator doesn't access the paging queues, and thus it will allow for the
removal of the page queues lock from this pmap.

Fix a rather serious bug in pmap_remove_write().  After removing write
access from the specified page's first mapping, pmap_remove_write() then
used the wrong "next" pointer.  Consequently, the page's second, third,
etc. mappings were not write protected.

Tested by: jchandra
sys/conf/options.mips
sys/mips/include/pmap.h
sys/mips/mips/pmap.c