[fpc-devel] Problem with thread local storage for xtensa-freertos

Christo Crause christo.crause at gmail.com
Fri Jul 3 21:58:10 CEST 2020


It was an alignment error.  I thought the alignment check was active in
SysInitThreadvar but a) it was commented out, and b) the ifdef check was
incorrect anyway.

On Fri, Jul 3, 2020 at 9:47 AM Christo Crause <christo.crause at gmail.com>
wrote:

> Busy working on threading and TLS, started with a stand-alone unit along
> the lines of cthreads and using OS memory allocation for storing the TLS
> blocks. After initializing (calling SysInitMultithreading) a block of
> memory is allocated and threadvars copied.  However there appears to be a
> two byte offset in the location of the threadvars after relocating them,
> see test and output below.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200703/90667e43/attachment.htm>


More information about the fpc-devel mailing list