implement atomic_swap_{uint,ulong,ptr) and some md variants. use these
authordlg <dlg@openbsd.org>
Tue, 6 Jan 2015 00:38:32 +0000 (00:38 +0000)
committerdlg <dlg@openbsd.org>
Tue, 6 Jan 2015 00:38:32 +0000 (00:38 +0000)
commit9b702505ae13990c2fdad6f544edc7ef62878f55
treea29839833f053128691d985d9d3c061a5247796a
parent5142c0024bb36e03f8cca49322fe84f7df8f3287
implement atomic_swap_{uint,ulong,ptr) and some md variants. use these
to replace x86_atomic_testset_{u32,u64}.

help from guenther@ kettenis@
ok kettenis@
sys/arch/amd64/amd64/ipi.c
sys/arch/amd64/amd64/pmap.c
sys/arch/amd64/include/atomic.h