OSDN Git Service

ldso: Fix compile-error on noMMU
[uclinux-h8/uClibc.git] / libpthread / nptl / sysdeps / sparc / sparc64 / pthread_spin_unlock.c
index 7037675..a00fad3 100644 (file)
@@ -14,9 +14,8 @@
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
 
 #include "pthreadP.h"
 #include <atomic.h>
@@ -24,7 +23,7 @@
 int
 pthread_spin_unlock (pthread_spinlock_t *lock)
 {
-  __asm __volatile ("membar #StoreStore | #LoadStore");
+  __asm__ __volatile__ ("membar #StoreStore | #LoadStore");
   *lock = 0;
   return 0;
 }