Hi!

On 19.07.2010 18:50, Daniël Mantione wrote:
Well, the following works on i386 but doesn't on x86_64, even though
modify_ldt succeeds:

(...)

If you know how to make it work, I keep myself recommended :)

Well... according to this thread http://stackoverflow.com/questions/1180796/how-to-use-gs-in-64-bit-windows-assembly-eg-porting-tls-code it's only possible in kernel mode using a special instruction. The kernel might set up the necessary data and the usermode part of the Win32 subsystem fills in the data later.

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to