about summary refs log tree commit diff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-12-09 09:49:32 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-12-09 09:49:32 +0100
commit8d1927d8dc5aad0f01c929123086be3a5b799d18 (patch)
tree29aead65fea69f988ce19f391b5a61c3f1829a1d /sysdeps/x86_64
parentce2248ab91b2ea09a378f85012f251f31ac65e31 (diff)
downloadglibc-8d1927d8dc5aad0f01c929123086be3a5b799d18.tar.gz
glibc-8d1927d8dc5aad0f01c929123086be3a5b799d18.tar.xz
glibc-8d1927d8dc5aad0f01c929123086be3a5b799d18.zip
nptl: Introduce THREAD_GETMEM_VOLATILE
This will be needed for rseq TCB access.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/nptl/tcb-access.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/x86_64/nptl/tcb-access.h b/sysdeps/x86_64/nptl/tcb-access.h
index 18848a729d..e4d2d07a9b 100644
--- a/sysdeps/x86_64/nptl/tcb-access.h
+++ b/sysdeps/x86_64/nptl/tcb-access.h
@@ -39,6 +39,8 @@
        }								      \
      __value; })
 
+/* THREAD_GETMEM already forces a read.  */
+#define THREAD_GETMEM_VOLATILE(descr, member) THREAD_GETMEM (descr, member)
 
 /* Same as THREAD_GETMEM, but the member offset can be non-constant.  */
 # define THREAD_GETMEM_NC(descr, member, idx) \