746c59c82a
Up until now, the `__thread` keyword has been used for declaring variables as Thread local storage. However, `__thread` is a GNU specific keyword which thus limits compatibility with other toolchains (for instance IAR). This PR intoduces a new macro `Z_THREAD_LOCAL` which expands to the corresponding C11, C23 or C++11 standard keyword based on the standard that is specified during compilation, else it uses the old `__thread` keyword. Signed-off-by: Daniel Flodin <daniel.flodin@iar.com> |
||
---|---|---|
.. | ||
offsets | ||
startup | ||
CMakeLists.txt | ||
README_MMU.txt | ||
README_WINDOWS.rst | ||
coredump.c | ||
cpu_idle.c | ||
crt1.S | ||
debug_helpers_asm.S | ||
elf.c | ||
fatal.c | ||
gdbstub.c | ||
gen_vectors.py | ||
gen_zsr.py | ||
irq_manage.c | ||
irq_offload.c | ||
mem_manage.c | ||
mmu.c | ||
mpu.c | ||
prep_c.c | ||
ptables.c | ||
smp.c | ||
syscall_helper.c | ||
thread.c | ||
timing.c | ||
tls.c | ||
userspace.S | ||
vector_handlers.c | ||
window_vectors.S | ||
xcc_stubs.c | ||
xtensa_asm2_util.S | ||
xtensa_backtrace.c | ||
xtensa_hifi.S | ||
xtensa_intgen.py | ||
xtensa_intgen.tmpl |