mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Implement arm64 version of __tls_get_addr().
MFC after: 1 week
This commit is contained in:
parent
e8c479fddc
commit
22e9ff95aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341512
@ -517,3 +517,15 @@ allocate_initial_tls(Obj_Entry *objs)
|
||||
|
||||
asm volatile("msr tpidr_el0, %0" : : "r"(tp));
|
||||
}
|
||||
|
||||
void *
|
||||
__tls_get_addr(tls_index* ti)
|
||||
{
|
||||
char *p;
|
||||
void *_tp;
|
||||
|
||||
__asm __volatile("mrs %0, tpidr_el0" : "=r" (_tp));
|
||||
p = tls_get_addr_common((Elf_Addr **)(_tp), ti->ti_module, ti->ti_offset);
|
||||
|
||||
return (p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user