summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-11-13 04:05:31 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-11-13 04:05:31 +0000
commit5efcf07228a4532074784c85689dddcbb6b56c77 (patch)
tree5991b8c3ee489b7c34221390007e3bd67a689d41 /libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
parent18b48698abe6cf957ec6ee5fa921b1a12f9bf914 (diff)
downloaduClibc-alpine-5efcf07228a4532074784c85689dddcbb6b56c77.tar.bz2
uClibc-alpine-5efcf07228a4532074784c85689dddcbb6b56c77.tar.xz
Begin merging of SuperH NPTL port. See the mailing list for further information.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S9
1 files changed, 2 insertions, 7 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
index 1fbb23a5a..a122d0d22 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
@@ -20,7 +20,6 @@
#include <lowlevelbarrier.h>
#include "lowlevel-atomic.h"
-#define SYS_futex 240
#define FUTEX_WAIT 0
#define FUTEX_WAKE 1
@@ -82,10 +81,8 @@ pthread_barrier_wait:
/* Increment LEFT. If this brings the count back to the
initial count unlock the object. */
- mov #1, r3
+ INC (@(LEFT,r8), r2)
mov.l @(INIT_COUNT,r8), r4
- XADD (r3, @(LEFT,r8), r2)
- add #-1, r4
cmp/eq r2, r4
bf 10f
@@ -125,10 +122,8 @@ pthread_barrier_wait:
/* Increment LEFT. If this brings the count back to the
initial count unlock the object. */
- mov #1, r3
+ INC (@(LEFT,r8), r2)
mov.l @(INIT_COUNT,r8), r4
- XADD (r3, @(LEFT,r8), r2)
- add #-1, r4
cmp/eq r2, r4
bf 5f