summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/i386/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/i386/tls.h')
-rw-r--r--nptl/sysdeps/i386/tls.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/nptl/sysdeps/i386/tls.h b/nptl/sysdeps/i386/tls.h
index 41e4327b4a..90a8b50dad 100644
--- a/nptl/sysdeps/i386/tls.h
+++ b/nptl/sysdeps/i386/tls.h
@@ -459,6 +459,15 @@ union user_desc_init
GL(dl_wait_lookup_done) ()
+#ifndef __ASSUME_PRIVATE_FUTEX
+# define THREAD_SET_PRIVATE_FUTEX(value) \
+ THREAD_SETMEM (THREAD_SELF, header.private_futex, value)
+# define THREAD_COPY_PRIVATE_FUTEX(descr) \
+ ((descr)->header.private_futex \
+ = THREAD_GETMEM (THREAD_SELF, header.private_futex))
+#endif
+
+
#endif /* __ASSEMBLER__ */
#endif /* tls.h */