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 AM, Maciej W. Rozycki <[email protected]> wrote:
> 
> Well, why not; go for it if you have the resources, it seems to me like 
> 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’s sort of my point, it’s a thing that already exists in the system that’s been in use for years now.

Here’s Greg McGarry’s paper on the NetBSD implementation from 2003:

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

-- thorpej