On Wed, Aug 5, 2009 at 4:43 AM, David Turner <[email protected]> wrote:

>
>
>
> The ARMv6 way of using a dedicated register is supposed to get much better
> performance, but of course can't be
> used by NDK-generated binaries which are built for ARMv5TE.
>

Actually, this last phrase is inexact, since NDK binaries don't have direct
access to this implementation.
Please disregard it :-)


>
>
>>
>> On Wed, Aug 5, 2009 at 3:06 AM, David Turner <[email protected]> wrote:
>>
>>>
>>>
>>> On Tue, Aug 4, 2009 at 12:24 PM, Neo <[email protected]> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Aug 4, 8:17 am, Ouyang Jiannan <[email protected]> wrote:
>>>> > hi, everyone,
>>>> > In bionic/libc/Android.mk we can see that
>>>> > x86 uses files pthread.c, pthread-timers.c ptrace.c and __get_tls.c
>>>> > in arm, it uses pthread.c.arm , pthread-timers.c.arm, ptrace.c.arm
>>>> > But I can't find these files or places which generate it
>>>> >
>>>> > So what's the arm support of TLS? Is there a reg uses as gs in x86 as
>>>> a
>>>> > pointer to tls?
>>>>
>>>> TLS is not supported in android though it is present in armv6 and
>>>> later.
>>>
>>>
>>> TLS is supported in Android (there wouldn't be any pthread implementation
>>> anyway).
>>>
>>> The current ARM implementation doesn't use an ARMv6-specific register but
>>> instead
>>> relies on a small kernel trick (which updates a very specific user
>>> virtual address on each
>>> context switch instead).
>>>
>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to