about summary refs log tree commit diff
path: root/nptl/sysdeps/i386/pthread_spin_lock.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-04-14 17:30:34 +0000
committerUlrich Drepper <drepper@redhat.com>2003-04-14 17:30:34 +0000
commitbd4f43b462aadbe49bece8a7d6b62381ee90f690 (patch)
treee5ea730e440688410b87dea9eee7b92e71d6777f /nptl/sysdeps/i386/pthread_spin_lock.c
parent18a8e730da98560330ba4dd3ead6f62f050c4ae7 (diff)
downloadglibc-bd4f43b462aadbe49bece8a7d6b62381ee90f690.tar.gz
glibc-bd4f43b462aadbe49bece8a7d6b62381ee90f690.tar.xz
glibc-bd4f43b462aadbe49bece8a7d6b62381ee90f690.zip
Update.
2003-04-14  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
	* sysdeps/x86_64/bits/atomic.h: Likewise.

2003-04-14  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
	POPARGS_1 to emit labels for the mov instructions.

2003-04-14  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
Diffstat (limited to 'nptl/sysdeps/i386/pthread_spin_lock.c')
-rw-r--r--nptl/sysdeps/i386/pthread_spin_lock.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/nptl/sysdeps/i386/pthread_spin_lock.c b/nptl/sysdeps/i386/pthread_spin_lock.c
index 43a1831131..f001fbacab 100644
--- a/nptl/sysdeps/i386/pthread_spin_lock.c
+++ b/nptl/sysdeps/i386/pthread_spin_lock.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -19,11 +19,12 @@
 
 #include "pthreadP.h"
 
-
-#ifdef UP
-# define LOCK
-#else
-# define LOCK "lock;"
+#ifndef LOCK_PREFIX
+# ifdef UP
+#  define LOCK_PREFIX	/* nothing */
+# else
+#  define LOCK_PREFIX	"lock;"
+# endif
 #endif
 
 
@@ -32,7 +33,7 @@ pthread_spin_lock (lock)
      pthread_spinlock_t *lock;
 {
   asm ("\n"
-       "1:\t" LOCK "decl %0\n\t"
+       "1:\t" LOCK_PREFIX "decl %0\n\t"
        "jne 2f\n\t"
        ".subsection 1\n\t"
        ".align 16\n"