]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2008-08-11 Aurelien Jarno <aurel32@debian.org>
authorRoland McGrath <roland@gnu.org>
Tue, 12 Aug 2008 00:59:01 +0000 (00:59 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 12 Aug 2008 00:59:01 +0000 (00:59 +0000)
* sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
Fix asm constraints.

sysdeps/mach/i386/machine-lock.h

index ca87647254061031280e30c41de73daf91b28464..33602f43a7d1a5f553bdef0323e02449bae250d1 100644 (file)
@@ -41,7 +41,7 @@ __spin_unlock (__spin_lock_t *__lock)
    register int __unlocked;
    __asm__ __volatile ("xchgl %0, %1"
                       : "=&r" (__unlocked), "=m" (*__lock) : "0" (0)
-                      : "memory");
+                      : "memory");
 }
 
 /* Try to lock LOCK; return nonzero if we locked it, zero if another has.  */
@@ -52,7 +52,7 @@ __spin_try_lock (__spin_lock_t *__lock)
   register int __locked;
   __asm__ __volatile ("xchgl %0, %1"
                      : "=&r" (__locked), "=m" (*__lock) : "0" (1)
-                     : "memory");
+                     : "memory");
   return !__locked;
 }