[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r3072 - in /fsf/glibc-2_6-branch/ports: ./ sysdeps/arm/nptl/ sysdeps/hppa/nptl/ sysdeps/mips/nptl/
- To: commits@xxxxxxxxxx
- Subject: [commits] r3072 - in /fsf/glibc-2_6-branch/ports: ./ sysdeps/arm/nptl/ sysdeps/hppa/nptl/ sysdeps/mips/nptl/
- From: eglibc@xxxxxxxxxx
- Date: Tue, 07 Aug 2007 07:10:54 -0000
Author: eglibc
Date: Tue Aug 7 00:10:54 2007
New Revision: 3072
Log:
Import glibc-ports-2.6 for 2007-08-07
Modified:
fsf/glibc-2_6-branch/ports/ChangeLog.arm
fsf/glibc-2_6-branch/ports/ChangeLog.hppa
fsf/glibc-2_6-branch/ports/ChangeLog.mips
fsf/glibc-2_6-branch/ports/sysdeps/arm/nptl/tls.h
fsf/glibc-2_6-branch/ports/sysdeps/hppa/nptl/tls.h
fsf/glibc-2_6-branch/ports/sysdeps/mips/nptl/tls.h
Modified: fsf/glibc-2_6-branch/ports/ChangeLog.arm
==============================================================================
--- fsf/glibc-2_6-branch/ports/ChangeLog.arm (original)
+++ fsf/glibc-2_6-branch/ports/ChangeLog.arm Tue Aug 7 00:10:54 2007
@@ -1,3 +1,12 @@
+2007-08-06 Aurelien Jarno <aurelien@xxxxxxxxxxx>
+
+ Backport:
+ 2007-07-10 Daniel Jacobowitz <dan@xxxxxxxxxxxxxxxx>
+ * sysdeps/arm/nptl/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
+ THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT): Define.
+ (THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
+ THREAD_GSCOPE_WAIT): Define.
+
2007-05-23 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
* sysdeps/unix/sysv/linux/arm/kernel-features.h
Modified: fsf/glibc-2_6-branch/ports/ChangeLog.hppa
==============================================================================
--- fsf/glibc-2_6-branch/ports/ChangeLog.hppa (original)
+++ fsf/glibc-2_6-branch/ports/ChangeLog.hppa Tue Aug 7 00:10:54 2007
@@ -1,3 +1,12 @@
+2007-08-06 Aurelien Jarno <aurelien@xxxxxxxxxxx>
+
+ Backport:
+ 2007-07-28 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
+ * sysdeps/hppa/nptl/tls.h: Define THREAD_GSCOPE_FLAG_UNUSED,
+ THREAD_GSCOPE_FLAG_USED, THREAD_GSOPE_FLAG_WAIT,
+ THREAD_GSCOPE_RSEET_FLAG, THREAD_GSCOPE_SET_FLAG, THREAD_GSCOPE_WAIT.
+ Update copyright.
+
2007-05-17 Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
* sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h
Modified: fsf/glibc-2_6-branch/ports/ChangeLog.mips
==============================================================================
--- fsf/glibc-2_6-branch/ports/ChangeLog.mips (original)
+++ fsf/glibc-2_6-branch/ports/ChangeLog.mips Tue Aug 7 00:10:54 2007
@@ -1,3 +1,12 @@
+2007-08-06 Aurelien Jarno <aurelien@xxxxxxxxxxx>
+
+ Backport:
+ 2007-06-06 Daniel Jacobowitz <dan@xxxxxxxxxxxxxxxx>
+ * sysdeps/mips/nptl/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
+ THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT): Define.
+ (THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
+ THREAD_GSCOPE_WAIT): Define.
+
2007-05-24 Atsushi Nemoto <anemo@xxxxxxxxxxxxx>
* sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c
Modified: fsf/glibc-2_6-branch/ports/sysdeps/arm/nptl/tls.h
==============================================================================
--- fsf/glibc-2_6-branch/ports/sysdeps/arm/nptl/tls.h (original)
+++ fsf/glibc-2_6-branch/ports/sysdeps/arm/nptl/tls.h Tue Aug 7 00:10:54 2007
@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. NPTL/ARM version.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -132,6 +132,29 @@
is not available. */
#define TLS_INIT_TP_EXPENSIVE 1
+/* Get and set the global scope generation counter in struct pthread. */
+#define THREAD_GSCOPE_FLAG_UNUSED 0
+#define THREAD_GSCOPE_FLAG_USED 1
+#define THREAD_GSCOPE_FLAG_WAIT 2
+#define THREAD_GSCOPE_RESET_FLAG() \
+ do \
+ { int __res \
+ = atomic_exchange_rel (&THREAD_SELF->header.gscope_flag, \
+ THREAD_GSCOPE_FLAG_UNUSED); \
+ if (__res == THREAD_GSCOPE_FLAG_WAIT) \
+ lll_futex_wake (&THREAD_SELF->header.gscope_flag, 1); \
+ } \
+ while (0)
+#define THREAD_GSCOPE_SET_FLAG() \
+ do \
+ { \
+ THREAD_SELF->header.gscope_flag = THREAD_GSCOPE_FLAG_USED; \
+ atomic_write_barrier (); \
+ } \
+ while (0)
+#define THREAD_GSCOPE_WAIT() \
+ GL(dl_wait_lookup_done) ()
+
#endif /* __ASSEMBLER__ */
#endif /* tls.h */
Modified: fsf/glibc-2_6-branch/ports/sysdeps/hppa/nptl/tls.h
==============================================================================
--- fsf/glibc-2_6-branch/ports/sysdeps/hppa/nptl/tls.h (original)
+++ fsf/glibc-2_6-branch/ports/sysdeps/hppa/nptl/tls.h Tue Aug 7 00:10:54 2007
@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. NPTL/hppa version.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -146,6 +146,29 @@
: : "r" (cr27) : "r26" );
}
+/* Get and set the global scope generation counter in struct pthread. */
+#define THREAD_GSCOPE_FLAG_UNUSED 0
+#define THREAD_GSCOPE_FLAG_USED 1
+#define THREAD_GSCOPE_FLAG_WAIT 2
+#define THREAD_GSCOPE_RESET_FLAG() \
+ do \
+ { int __res \
+ = atomic_exchange_rel (&THREAD_SELF->header.gscope_flag, \
+ THREAD_GSCOPE_FLAG_UNUSED); \
+ if (__res == THREAD_GSCOPE_FLAG_WAIT) \
+ lll_private_futex_wake (&THREAD_SELF->header.gscope_flag, 1); \
+ } \
+ while (0)
+#define THREAD_GSCOPE_SET_FLAG() \
+ do \
+ { \
+ THREAD_SELF->header.gscope_flag = THREAD_GSCOPE_FLAG_USED; \
+ atomic_write_barrier (); \
+ } \
+ while (0)
+#define THREAD_GSCOPE_WAIT() \
+ GL(dl_wait_lookup_done) ()
+
#endif /* __ASSEMBLER__ */
#endif /* tls.h */
Modified: fsf/glibc-2_6-branch/ports/sysdeps/mips/nptl/tls.h
==============================================================================
--- fsf/glibc-2_6-branch/ports/sysdeps/mips/nptl/tls.h (original)
+++ fsf/glibc-2_6-branch/ports/sysdeps/mips/nptl/tls.h Tue Aug 7 00:10:54 2007
@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. NPTL/MIPS version.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -156,6 +156,29 @@
different value to mean unset l_tls_offset. */
# define NO_TLS_OFFSET -1
+/* Get and set the global scope generation counter in struct pthread. */
+#define THREAD_GSCOPE_FLAG_UNUSED 0
+#define THREAD_GSCOPE_FLAG_USED 1
+#define THREAD_GSCOPE_FLAG_WAIT 2
+#define THREAD_GSCOPE_RESET_FLAG() \
+ do \
+ { int __res \
+ = atomic_exchange_rel (&THREAD_SELF->header.gscope_flag, \
+ THREAD_GSCOPE_FLAG_UNUSED); \
+ if (__res == THREAD_GSCOPE_FLAG_WAIT) \
+ lll_futex_wake (&THREAD_SELF->header.gscope_flag, 1); \
+ } \
+ while (0)
+#define THREAD_GSCOPE_SET_FLAG() \
+ do \
+ { \
+ THREAD_SELF->header.gscope_flag = THREAD_GSCOPE_FLAG_USED; \
+ atomic_write_barrier (); \
+ } \
+ while (0)
+#define THREAD_GSCOPE_WAIT() \
+ GL(dl_wait_lookup_done) ()
+
#endif /* __ASSEMBLER__ */
#endif /* tls.h */