zephyr/kernel
Daniel Flodin 746c59c82a arch: kernel: lib: toolchain: Standardize TLS keyword
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>
2024-09-23 10:01:48 +02:00
..
include arch: add interface to dump privileged stack in coredump 2024-09-21 11:29:39 +02:00
paging
CMakeLists.txt
Kconfig init: introduce soc and board hooks 2024-09-09 10:07:33 +02:00
Kconfig.device
Kconfig.init init: enhance kconfig docs for custom hooks 2024-09-20 13:15:31 +02:00
Kconfig.mem_domain
Kconfig.obj_core
Kconfig.smp kernel: remove `CONFIG_MP_NUM_CPUS` 2024-09-19 18:28:37 +01:00
Kconfig.vm kernel: mmu: support for on-demand mappings 2024-08-26 17:25:41 -04:00
atomic_c.c
banner.c
busy_wait.c
compiler_stack_protect.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
condvar.c
cpu_mask.c kernel: Simplify k_thread_cpu_pin() 2024-09-20 09:02:38 +02:00
device.c
dynamic.c
dynamic_disabled.c
errno.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
events.c
fatal.c
float.c
futex.c
idle.c
init.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
init_static.c
ipi.c
irq_offload.c
kheap.c
mailbox.c
main_weak.c
mem_domain.c
mem_slab.c
mempool.c
mmu.c kernel: mmu: install demand mappings for the on-demand linker sections 2024-09-10 17:17:30 -04:00
msg_q.c
mutex.c
nothread.c
obj_core.c
pipes.c
poll.c
priority_queues.c
queue.c
sched.c doc: kernel/arch: fix some wrong doxygen references 2024-09-17 05:24:09 -04:00
sem.c
smp.c
spinlock_validate.c
stack.c
system_work_q.c
thread.c style: kernel: remove unnecessary `return` statements 2024-09-20 11:06:55 +02:00
thread_monitor.c style: kernel: comply with MISRA C:2012 Rule 15.6 2024-09-11 07:40:35 -04:00
timeout.c
timer.c
timeslicing.c
usage.c
userspace.c kernel: userspace: Fix dynamic thread stack allocation for RISC-V 2024-09-04 21:28:36 +02:00
userspace_handler.c
version.c
work.c
xip.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00