Use atomic ops on the set of used segment registers
authorgkoehler <gkoehler@openbsd.org>
Tue, 10 Jan 2023 21:27:12 +0000 (21:27 +0000)
committergkoehler <gkoehler@openbsd.org>
Tue, 10 Jan 2023 21:27:12 +0000 (21:27 +0000)
commitbd4c0be29053b4f65e0a4d68e64ca46c5edc0809
tree37cc2c1f7f9939d6d36d013f2681f0413d8f9f91
parent7e81395c4a98f6520af53a2216f1f4ec89c725df
Use atomic ops on the set of used segment registers

Each pmap sets a bit in usedsr to claim 16 unique VSIDs for its
segment registers. Use atomic_cas_uint to set this bit (checking that
the other cpu didn't steal it) and atomic_clearbits_int to clear it.
Stop using splvm.

ok miod@
sys/arch/powerpc/powerpc/pmap.c