GNOME Bugzilla – Bug 113280
[0.6.3] Atomic sparc code needs testing
Last modified: 2004-12-22 21:47:04 UTC
The sparc code in gstatomic_impl.h requires gcc > 3.1.1 Could somebody with inline assembler knowledge fix those asm volatile stuff to not use "[var]" constructs please?
Is that "> 3.1.1", ">= 3.1.1", or ">= 3.2". Not that it matters much, but I used ">= 3.2". I frobbed the asm, leaving the original inside an #if, since it's much cleaner. Please tell me if it works.
Sorry, that was supposed to be "gcc >= 3.1" And I don't know if the locking stuff works. I've had some funky backtraces after crashes. I don't know if that were your changes. The default implemntation works a bit better here. Couldn't we just rip the code of bug 63621 and use that?
Perhaps, but you'd have to upgrade to a sparc64 cpu to use it.
I'm testing on vore.debian.org (sparc64). gst-launch fakesrc ! tee ! fakesink tee0.src1 ! fakesink fails almost immediately.
Fixed and tested in HEAD. The code was obviously wrong (to one who understands sparc asm). Needs backporting.
Created attachment 18735 [details] [review] patch
Created attachment 18737 [details] [review] patch for 0.6.x
Applied to 0.6.3. Thanks. :).