Re: __atomic_test_and_set() and mips o32 - help wanted

Jason Thorpe <[email protected]> Fri, 21 Nov 2025 11:51:21 +0100
Newsgroups gmane.os.netbsd.ports.mips.devel,gmane.os.netbsd.devel.toolchain,gmane.os.netbsd.ports.alpha
Message-ID <[email protected]>
> On Nov 21, 2025, at 11:28=E2=80=AFAM, Maciej W. Rozycki =
<[email protected]> wrote:
>=20
> Well, why not; go for it if you have the resources, it seems to me =
like=20
> an interesting project!

NetBSD already implements this in libc for the atomic(3) functions, and =
the pthread library also uses it for mutex operations on non-MP systems. =
 That=E2=80=99s sort of my point, it=E2=80=99s a thing that already =
exists in the system that=E2=80=99s been in use for years now.

Here=E2=80=99s Greg McGarry=E2=80=99s paper on the NetBSD implementation =
from 2003:

    =
https://www.usenix.org/legacy/publications/library/proceedings/usenix03/te=
ch/freenix03/full_papers/mcgarry/mcgarry.pdf

-- thorpej