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@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel