Linux kernel helpers support is provided to android for its TLS implementation. This fix addresses this by modifying

the TLS access functions to use the kernel helper.
This Fix is verified on ST Ericsson's U8500 platform and Submitted on behalf of a third-party:
Surinder-pal SINGH from STMicroelectronics.
This commit is contained in:
vinay harugop 2009-08-05 02:09:29 +05:30 committed by Jean-Baptiste Queru
parent c7f65a01e5
commit a246a71975

View File

@ -87,8 +87,10 @@ extern void __init_tls(void** tls, void* thread_info);
extern int __set_tls(void *ptr);
/* get the TLS */
/* Linux kernel helpers for its TLS implementation */
#ifdef __arm__
# define __get_tls() ( *((volatile void **) 0xffff0ff0) )
typedef void* (__kernel_get_tls_t)(void);
#define __get_tls (*(__kernel_get_tls_t *)0xffff0fe0)
#else
extern void* __get_tls( void );
#endif