kconfig: add configs for thread local storage

Add kconfigs to indicate whether an architecture has support
for thread local storage (TLS), and to enable TLS in kernel.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2020-09-28 11:03:52 -07:00 committed by Andrew Boie
commit 240beb42af
2 changed files with 9 additions and 0 deletions

View file

@ -427,6 +427,9 @@ config ARCH_HAS_COHERENCE
arch_mem_coherent() API and can link into incoherent/cached
memory using the ".cached" linker section.
config ARCH_HAS_THREAD_LOCAL_STORAGE
bool
#
# Other architecture related options
#

View file

@ -853,4 +853,10 @@ config TICKLESS_KERNEL
This option enables a fully event driven kernel. Periodic system
clock interrupt generation would be stopped at all times.
config THREAD_LOCAL_STORAGE
bool "Thread Local Storage (TLS)"
depends on ARCH_HAS_THREAD_LOCAL_STORAGE
help
This option enables thread local storage (TLS) support in kernel.
endmenu