[asterisk-commits] tilghman: branch 1.4 r81569 - /branches/1.4/include/asterisk/lock.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 5 12:18:25 CDT 2007


Author: tilghman
Date: Wed Sep  5 12:18:24 2007
New Revision: 81569

URL: http://svn.digium.com/view/asterisk?view=rev&rev=81569
Log:
Solaris x86 compatibility fix

Modified:
    branches/1.4/include/asterisk/lock.h

Modified: branches/1.4/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/lock.h?view=diff&rev=81569&r1=81568&r2=81569
==============================================================================
--- branches/1.4/include/asterisk/lock.h (original)
+++ branches/1.4/include/asterisk/lock.h Wed Sep  5 12:18:24 2007
@@ -789,7 +789,11 @@
 AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
 {
 	__asm __volatile (
+#ifdef sun
+	"       lock;  xaddl   %0, %1 ;        "
+#else
 	"       lock   xaddl   %0, %1 ;        "
+#endif
 	: "+r" (v),                     /* 0 (result) */   
 	  "=m" (*p)                     /* 1 */
 	: "m" (*p));                    /* 2 */




More information about the asterisk-commits mailing list