Hide __set_tls.
Bug: 11156955 Change-Id: If82c10ae412651361d09591017d1c3a411bd6f0b
This commit is contained in:
parent
3d2bc5d6c8
commit
a75869f0b2
@ -26,6 +26,8 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
void __set_tls(void* tls) {
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__LIBC_HIDDEN__ void __set_tls(void* tls) {
|
||||
asm("msr tpidr_el0, %0" : : "r" (tls));
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ __LIBC_HIDDEN__ void __init_user_desc(struct user_desc* result, bool allocate, v
|
||||
result->useable = 1;
|
||||
}
|
||||
|
||||
int __set_tls(void* ptr) {
|
||||
__LIBC_HIDDEN__ int __set_tls(void* ptr) {
|
||||
struct user_desc tls_descriptor;
|
||||
__init_user_desc(&tls_descriptor, true, ptr);
|
||||
|
||||
|
@ -31,6 +31,6 @@
|
||||
|
||||
extern int __arch_prctl(int, unsigned long);
|
||||
|
||||
int __set_tls(void* ptr) {
|
||||
__LIBC_HIDDEN__ int __set_tls(void* ptr) {
|
||||
return __arch_prctl(ARCH_SET_FS, (uintptr_t) ptr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user