[PATCH 6/9] Use proper membar instructions on SPARC

David Miller davem at davemloft.net
Thu Aug 13 13:04:42 PDT 2009


From: Michael <macallan at netbsd.org>
Date: Thu, 13 Aug 2009 13:11:58 -0400

>> #if defined(__sparc__) && defined(__arch64__)
> 
> IIRC __arch64__ is only set when you're running a 64bit binary which
> may or may not be the case on a 64bit SPARC.

Right.

> So, it would work on NetBSD/sparc64 but not on Solaris, Linux
> etc. which use mostly 32bit userlands as far as I know.

Also correct.

> What you want to check for is __sparc_v9__

That's not going to be CPP defined either, unfortunately.

I really think, based upon this, that the hard-coded opcodes have to
stay.  It's the only way to cover all cases.


More information about the xorg-devel mailing list