Justin Erenkrantz wrote:

I *really* need help testing this.  Create atomic/linux/Makefile.in
atomic/linux/apr_atomic_linux.c from the fragments below and and
apply these patches.


Thanks. I'll take a look at it this week.

If the assembler syntax is compatible, we should probably
maintain a single code base for Solaris/Sparc and Linux/Sparc.

This might get us out of the quagmire we have with the atomics on
Linux.  Basically, this is an import of the FreeBSD code for doing
atomics on x86, Alpha, and Sparc.  The other platforms should
default to the generic implementation.  I imagine if someone is
interested in the others, they can step up.  I've had my fill of
processors for one night.

This doesn't implement CAS on x86 or Alpha.  I think x86 can do
that, but I'll leave that up to someone else to figure out.  =)


cmpxchg should work on x86 (for 486 and later, I think).

--Brian




Reply via email to