Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Architecture-specific Thread Local Storage APIs

Functions

size_t arch_tls_stack_setup (struct k_thread *new_thread, char *stack_ptr)
 Setup Architecture-specific TLS area in stack. More...
 

Detailed Description

Function Documentation

◆ arch_tls_stack_setup()

size_t arch_tls_stack_setup ( struct k_thread new_thread,
char *  stack_ptr 
)

#include <kernel/include/kernel_arch_interface.h>

Setup Architecture-specific TLS area in stack.

This sets up the stack area for thread local storage. The structure inside in area is architecture specific.

Parameters
new_threadNew thread object
stack_ptrStack pointer
Returns
Number of bytes taken by the TLS area