On 20 Jul 2010, at 14:03, Michael Schnell wrote:

> BTW what about GS ? If same is just restored after preemption, this could be 
> used by the compiler to point to the Threadvar area.

Only if you are guaranteed that no externally called code will modify it. In 
that case, you FPC itself also save/restore that register before and after 
calling any potentially non-FPC code, since other applications may make the 
same assumption. If you don't make that assumption, at the very least you still 
have to reload it after any call to potentially non-FPC code.


Jonas_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to