Hello list,
At present, ARM TLS (Thread Local Storage) is turned off, and you can
check the kernel commit log:
commit bd56f9006e21115a5baf3368a5728680f4ddc1e6
Author: Rebecca Schultz Zavin <
reb...@android.com>
Date: Wed Mar 11 21:15:03 2009 -0700
HACK: zoom2 turning off TLS reg. doesn't work otherwise, bug in bionic?
Signed-off-by: Rebecca Schultz Zavin <
reb...@android.com>
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
index d490f37..9a6a482 100644
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -667,7 +667,7 @@ config TLS_REG_EMUL
config HAS_TLS_REG
bool
depends on !TLS_REG_EMUL
- default y if SMP || CPU_32v7
+ default n if SMP || CPU_32v7
help
This selects support for the CP15 thread register.
It is defined to be available on some ARMv6 processors (including
If you would like to re-enable, just revert the above change, and
kernel config will now get new entry:
CONFIG_HAS_TLS_REG=y
Rebuild the kernel and apply patch: 'android-enable-tls.patch'
The attached patch contains the experimental changes to enable TLS in
userspace (Android bionic and frameworks/base).
NOTE: It shall be verified fully, and I just attempt to perform
performance tests.
Sincerely,
Jim Huang (jserv)
http://0xlab.org/