[fpc-devel] OO rewrite - technical questions
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.
> fpc-devel maillist - fpc-devel at lists.freepascal.org
More information about the fpc-devel