diff options
author | Ajay Dudani <adudani@quicinc.com> | 2009-10-13 10:36:19 -0700 |
---|---|---|
committer | Ajay Dudani <adudani@quicinc.com> | 2009-10-13 10:36:19 -0700 |
commit | 7079f391e4f18b96c43688ee5f4204bf0b5be647 (patch) | |
tree | d84b1dbe3523fe278b0227727a196ab05a9dcdea | |
parent | 0e94a29e3cde77f0bb63f3670a81d80c484a5a51 (diff) | |
download | bionic-7079f391e4f18b96c43688ee5f4204bf0b5be647.zip bionic-7079f391e4f18b96c43688ee5f4204bf0b5be647.tar.gz bionic-7079f391e4f18b96c43688ee5f4204bf0b5be647.tar.bz2 |
bionic: Use kernel tls get function instead of duplicating it in bionic
Need to remove duplicate tls get in bionic that reads 0xffff0ff0 and
COPROC TLS flag as next step.
-rw-r--r-- | libc/private/bionic_tls.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/private/bionic_tls.h b/libc/private/bionic_tls.h index a88d52a..16cd542 100644 --- a/libc/private/bionic_tls.h +++ b/libc/private/bionic_tls.h @@ -88,7 +88,12 @@ extern void __init_tls(void** tls, void* thread_info); extern int __set_tls(void *ptr); /* get the TLS */ +#ifdef __arm__ +typedef void* (__get_tls_t)(void); +static const __get_tls_t* __get_tls = (const __get_tls_t *)0xffff0fe0; +#else extern void* __get_tls( void ); +#endif /* return the stack base and size, used by our malloc debugger */ extern void* __get_stack_base(int *p_stack_size); |