summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-11 05:52:12 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-11 05:52:12 +0000
commit6a4263e3d5a6fee74776f3bcad4e53f5257aa5bf (patch)
treed40ee1bc4a17499cd489c58a66d9d0c0ce1b1658 /nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
parent3de7c2a96526ff7344152c887845c11b35e301e6 (diff)
Update.
* sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S10
1 files changed, 3 insertions, 7 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S b/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
index eead7c6044..769ce7e655 100644
--- a/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
+++ b/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
@@ -17,17 +17,13 @@
02111-1307 USA. */
#include <sysdep.h>
+#include <lowlevelbarrier.h>
#include "lowlevel-atomic.h"
#define SYS_futex 240
#define FUTEX_WAIT 0
#define FUTEX_WAKE 1
-#define CURR_EVENT 0
-#define MUTEX 4
-#define LEFT 8
-#define INIT_COUNT 12
-
.text
@@ -90,7 +86,7 @@ pthread_barrier_wait:
rts
mov.l @r15+, r9
-3:
+3:
/* The necessary number of threads arrived. */
mov.l @(INIT_COUNT,r8), r0
mov.l r0, @(LEFT,r8)
@@ -160,5 +156,5 @@ pthread_barrier_wait:
.Lwake0:
.long __lll_unlock_wake-.Lwake0b
.Lwake1:
- .long __lll_unlock_wake-.Lwake1b
+ .long __lll_unlock_wake-.Lwake1b
.size pthread_barrier_wait,.-pthread_barrier_wait