[fpc-devel] OO rewrite - technical questions
Nikolai Zhubr
n-a-zhubr at yandex.ru
Sat Jul 24 18:55:01 CEST 2010
24.07.2010 19:46, Hans-Peter Diettrich:
>> MOV EAX,TlsIndex
>> MOV EDX,FS:tlsArray
>> MOV EAX,[EDX+EAX*4]
>
> I wonder what TlsIndex here is?
tlsArray = $2C;
IIRC for an application (not a dll) TlsIndex is always 0
(But I might be wrong here though)
> Also FS:tlsArray seems to contain an address in the general address
> space, so that only the tlsArray seems to vary across threads? I had
> thought that TlsIndex also should vary accross threads.
I think only FS selector (and/or descriptor) varies across threads.
> DoDi
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list