Mindaugas any chance that you can check the code generated by MSVC
which access thread local variables for wi...@32 and Win64?
I do not have any Win64 disassembler, but I think I can do some reverse
engineering by hand (and brain) :)
http://en.wikipedia.org/wiki/X86-64
"Instead of FS segment descriptor on x86 versions of the Windows NT
family, GS segment descriptor is used to point to two operating system
defined structures: Thread Information Block (NT_TIB) in user mode and
Processor Control Region (KPCR) in kernel mode. Thus, for example, in
user mode GS:0 is the address of the first member of the Thread
Information Block. Maintaining this convention made the x86-64 port
easier, but required AMD to retain the function of the FS and GS
segments in long mode — even though segmented addressing per se is not
really used by any modern operating system"
Send me some MSVC samples, that accesses TLS, because I do not have this
compiler.
Regards,
Mindaugas
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour