kernel: add common bits to support TLS
This adds the common struct fields and functions to support the implementation of thread local storage in individual architecture. This uses the thread stack to store TLS data. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
3180fc0ecc
commit
02b20351cd
7 changed files with 97 additions and 0 deletions
|
@ -291,6 +291,11 @@ zephyr_cc_option(-fno-pie)
|
|||
zephyr_cc_option(-fno-pic)
|
||||
zephyr_cc_option(-fno-strict-overflow)
|
||||
|
||||
if(CONFIG_THREAD_LOCAL_STORAGE)
|
||||
# Only support local exec TLS model at this point.
|
||||
zephyr_cc_option(-ftls-model=local-exec)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OVERRIDE_FRAME_POINTER_DEFAULT)
|
||||
if(CONFIG_OMIT_FRAME_POINTER)
|
||||
zephyr_cc_option(-fomit-frame-pointer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue