I found this in chthreads.h:
Code: Select all
/**
* @brief Returns the pointer to the @p Thread local storage area, if any.
* @note Can be invoked in any context.
*
* @special
*/
#define chThdLS() (void *)(currp + 1)
This looks encouraging. Can anyone provide more docs or, better yet, a usage example?