Use atomic instructions to keep track of what ASIDs are in use. This makes
authorkettenis <kettenis@openbsd.org>
Wed, 15 Aug 2018 20:18:31 +0000 (20:18 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 15 Aug 2018 20:18:31 +0000 (20:18 +0000)
commita31a4de8d8b0e5308bfd84ed442754824029c8b1
tree319c424375fbeff881fbbb18c6c3d376b4201913
parentc16cd9062712c6e1297e4a4f538b16b7731a4aa1
Use atomic instructions to keep track of what ASIDs are in use.  This makes
pmap_free_asid() and therefore pmap_destroy() mpsafe which is important since
we might end up calling that function without holding the kernel lock
as a result of releasing a reference in pmap_page_protect(9).

ok visa@
sys/arch/arm64/arm64/pmap.c