From: Richard Henderson <r...@redhat.com> Date: Tue, 01 Nov 2011 13:48:26 -0700
> (2) Can we have the kernel implement some {SWAP,CAS}{4,8} primitives (possibly > via a special trap) that we can export from libgcc, as we do for ARM, PA, > & SH? > > I believe that would allow all of the non-embedded linux to support all of > the c++11 atomic operations without having to resort to spinlocks. Yes, I was just looking into this right now. I didn't realize that PA, SH, and ARM had added these kernel hooks to solve this problem.