aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2002-03-17 12:09:54 +0000
committerAndreas Jaeger <aj@suse.de>2002-03-17 12:09:54 +0000
commitd61bf265110367d74e39c5133fd0e4cbe2d2d90a (patch)
treee1e5276d40eaef7781c9e25608f960ec07b0251c /sysdeps
parentf1cdba97f5000b0b436acff729008520e6a657a8 (diff)
downloadglibc-d61bf265110367d74e39c5133fd0e4cbe2d2d90a.tar
glibc-d61bf265110367d74e39c5133fd0e4cbe2d2d90a.tar.gz
glibc-d61bf265110367d74e39c5133fd0e4cbe2d2d90a.tar.bz2
glibc-d61bf265110367d74e39c5133fd0e4cbe2d2d90a.zip
* sysdeps/i386/pt-machine.h: Add testandset and __compare_and_swap
prototpyes. * sysdeps/alpha/pt-machine.h: Likewise. * sysdeps/arm/pt-machine.h: Likewise. * sysdeps/cris/pt-machine.h: Likewise. * sysdeps/hppa/pt-machine.h: Likewise. * sysdeps/i386/i686/pt-machine.h: Likewise. * sysdeps/ia64/pt-machine.h: Likewise. * sysdeps/m68k/pt-machine.h: Likewise. * sysdeps/mips/pt-machine.h: Likewise. * sysdeps/powerpc/pt-machine.h: Likewise. * sysdeps/s390/s390-32/pt-machine.h: Likewise. * sysdeps/s390/s390-64/pt-machine.h: Likewise. * sysdeps/sh/pt-machine.h: Likewise. * sysdeps/sparc/sparc32/pt-machine.h: Likewise. * sysdeps/sparc/sparc64/pt-machine.h: Likewise. * sysdeps/x86_64/pt-machine.h: Likewise. * internals.h: Move testandset and __compare_and_swap prototypes to pt-machine.h.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/arm/linuxthreads/pt-machine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/arm/linuxthreads/pt-machine.h b/sysdeps/arm/linuxthreads/pt-machine.h
index 1079de4a41..cab724a668 100644
--- a/sysdeps/arm/linuxthreads/pt-machine.h
+++ b/sysdeps/arm/linuxthreads/pt-machine.h
@@ -1,6 +1,6 @@
/* Machine-dependent pthreads configuration and inline functions.
ARM version.
- Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Philip Blundell <philb@gnu.org>.
@@ -19,10 +19,13 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+
#ifndef PT_EI
# define PT_EI extern inline
#endif
+extern long int testandset (int *spinlock);
+extern int __compare_and_swap (long int *p, long int oldval, long int newval);
/* This will not work on ARM1 or ARM2 because SWP is lacking on those
machines. Unfortunately we have no way to detect this at compile