mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08:00
nptl: Introduce THREAD_GETMEM_VOLATILE
This will be needed for rseq TCB access. Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
This commit is contained in:
parent
ce2248ab91
commit
8d1927d8dc
@ -41,6 +41,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) \
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
#define THREAD_GETMEM(descr, member) \
|
||||
descr->member
|
||||
#define THREAD_GETMEM_VOLATILE(descr, member) \
|
||||
(*(volatile __typeof (descr->member) *)&descr->member)
|
||||
#define THREAD_GETMEM_NC(descr, member, idx) \
|
||||
descr->member[idx]
|
||||
#define THREAD_SETMEM(descr, member, value) \
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user