The TLS global pointer is only set during context switch. So for the first switch to main thread, the TLS pointer is NULL which would cause access violation when trying to access any thread local variables in main thread. Fix it by setting it before going into main thread. Signed-off-by: Daniel Leung <daniel.leung@intel.com> |
||
---|---|---|
.. | ||
arc | ||
arm | ||
arm64 | ||
common | ||
nios2 | ||
posix | ||
riscv | ||
sparc | ||
x86 | ||
xtensa | ||
CMakeLists.txt | ||
Kconfig |