]> sourceware.org Git - glibc.git/blobdiff - sysdeps/unix/sysv/linux/mips/sys/tas.h
Amend log entry with omitted file.
[glibc.git] / sysdeps / unix / sysv / linux / mips / sys / tas.h
index 7ad916c3c9e0fbca6612f7cc9f49a663bd1c6b1d..1183b867b842015ab09c4e399977bac28a16110a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Maciej W. Rozycki <macro@ds2.pg.gda.pl>, 2000.
 
@@ -21,6 +21,7 @@
 #define _SYS_TAS_H 1
 
 #include <features.h>
+#include <sgidefs.h>
 
 __BEGIN_DECLS
 
@@ -33,7 +34,7 @@ extern int _test_and_set (int *p, int v) __THROW;
 # endif
 
 _EXTERN_INLINE int
-_test_and_set (int *p, int v) __THROW
+__NTH (_test_and_set (int *p, int v))
 {
   int r, t;
 
@@ -41,7 +42,9 @@ _test_and_set (int *p, int v) __THROW
     ("/* Inline test and set */\n"
      "1:\n\t"
      ".set     push\n\t"
+#if _MIPS_SIM == _ABIO32
      ".set     mips2\n\t"
+#endif
      "ll       %0,%3\n\t"
      "move     %1,%4\n\t"
      "beq      %0,%4,2f\n\t"
This page took 0.031354 seconds and 5 git commands to generate.