Make the sparc64 pmap (more) mpsafe by protecting both the pmap itself and the
authorkettenis <kettenis@openbsd.org>
Thu, 9 Apr 2015 16:56:52 +0000 (16:56 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 9 Apr 2015 16:56:52 +0000 (16:56 +0000)
commite4632938fbbd2e01a29e1e3b1462ce28a93fc447
tree06e55db46120c238f129e098e6acf50b2e7f025d
parentd9f7a923655a4054fb5e916a3a090478aa70cb8b
Make the sparc64 pmap (more) mpsafe by protecting both the pmap itself and the
pv lists with a mutex.  Some minor code adjustments to prevent holding locks
too long.  This should make pmap_enter(9), pmap_remove(9) and
pmap_page_protect(9) safe to use without holding the kernel lock.
sys/arch/sparc64/include/pmap.h
sys/arch/sparc64/sparc64/pmap.c