mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
aarch64: morello: nptl: fix thread pointer setup
This commit is contained in:
parent
63bee6f155
commit
01faa1bcd4
@ -71,8 +71,13 @@ typedef struct
|
||||
/* Code to initially initialize the thread pointer. This might need
|
||||
special attention since 'errno' is not yet available and if the
|
||||
operation can cause a failure 'errno' must not be touched. */
|
||||
# ifdef __CHERI_PURE_CAPABILITY__
|
||||
# define TLS_INIT_TP(tcbp) \
|
||||
({ __asm __volatile ("msr ctpidr_el0, %0" : : "r" (tcbp)); NULL; })
|
||||
# else
|
||||
# define TLS_INIT_TP(tcbp) \
|
||||
({ __asm __volatile ("msr tpidr_el0, %0" : : "r" (tcbp)); NULL; })
|
||||
# endif
|
||||
|
||||
/* Value passed to 'clone' for initialization of the thread register. */
|
||||
# define TLS_DEFINE_INIT_TP(tp, pd) void *tp = (pd) + 1
|
||||
|
Loading…
Reference in New Issue
Block a user