Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
main.c File Reference

Macros

#define NUM_THREADS   3
 
#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
 
#define STATIC_DATA8   0x7FU
 
#define STATIC_DATA32   0xABCDEF00U
 
#define STATIC_DATA64   0x1122334455667788UL
 
#define PREFIX_8   0x30U
 
#define PREFIX_32   0x44668800U
 
#define PREFIX_64   0xFFEEDDCC00000000UL
 

Enumerations

enum  test_result {
  TEST_OK , ERR_BAD_STATIC_DATA , ERR_BSS_NOT_ZERO , ERR_DATA_CHANGED_BY_OTHERS ,
  ERR_BSS_CHANGED_BY_OTHERS , TEST_NOT_STARTED
}
 

Functions

 K_APPMEM_PARTITION_DEFINE (part_common)
 
static K_THREAD_STACK_ARRAY_DEFINE (tls_stack, 3,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
 K_APP_BMEM (part_common)
 
static void start_tls_test (uint32_t thread_options)
 
 ZTEST (thread_tls, test_tls)
 
 ZTEST_USER (thread_tls, test_tls_userspace)
 
void * thread_tls_setup (void)
 
 ZTEST_SUITE (thread_tls, NULL, thread_tls_setup, NULL, NULL, NULL)
 

Variables

struct k_mem_domain dom_common
 
static struct k_thread tls_thread [3]
 

Macro Definition Documentation

◆ NUM_THREADS

#define NUM_THREADS   3

◆ PREFIX_32

#define PREFIX_32   0x44668800U

◆ PREFIX_64

#define PREFIX_64   0xFFEEDDCC00000000UL

◆ PREFIX_8

#define PREFIX_8   0x30U

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)

◆ STATIC_DATA32

#define STATIC_DATA32   0xABCDEF00U

◆ STATIC_DATA64

#define STATIC_DATA64   0x1122334455667788UL

◆ STATIC_DATA8

#define STATIC_DATA8   0x7FU

Enumeration Type Documentation

◆ test_result

Enumerator
TEST_OK 
ERR_BAD_STATIC_DATA 
ERR_BSS_NOT_ZERO 
ERR_DATA_CHANGED_BY_OTHERS 
ERR_BSS_CHANGED_BY_OTHERS 
TEST_NOT_STARTED 

Function Documentation

◆ K_APP_BMEM()

K_APP_BMEM ( part_common  )

◆ K_APPMEM_PARTITION_DEFINE()

K_APPMEM_PARTITION_DEFINE ( part_common  )

◆ K_THREAD_STACK_ARRAY_DEFINE()

static K_THREAD_STACK_ARRAY_DEFINE ( tls_stack  ,
,
(512+CONFIG_TEST_EXTRA_STACK_SIZE)   
)
static

◆ start_tls_test()

static void start_tls_test ( uint32_t  thread_options)
static

◆ thread_tls_setup()

void * thread_tls_setup ( void  )

◆ ZTEST()

ZTEST ( thread_tls  ,
test_tls   
)

◆ ZTEST_SUITE()

ZTEST_SUITE ( thread_tls  ,
NULL  ,
thread_tls_setup  ,
NULL  ,
NULL  ,
NULL   
)

◆ ZTEST_USER()

ZTEST_USER ( thread_tls  ,
test_tls_userspace   
)

Variable Documentation

◆ dom_common

struct k_mem_domain dom_common

◆ tls_thread

struct k_thread tls_thread[3]
static