Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
#include <zephyr/ztest.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <zephyr/app_memory/app_memdomain.h>
#include <zephyr/sys/libc-hooks.h>
#include <zephyr/sys/util.h>
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] |
#define NUM_THREADS 3 |
#define PREFIX_32 0x44668800U |
#define PREFIX_64 0xFFEEDDCC00000000UL |
#define PREFIX_8 0x30U |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
#define STATIC_DATA32 0xABCDEF00U |
#define STATIC_DATA64 0x1122334455667788UL |
#define STATIC_DATA8 0x7FU |
enum test_result |
K_APP_BMEM | ( | part_common | ) |
K_APPMEM_PARTITION_DEFINE | ( | part_common | ) |
|
static |
|
static |
void * thread_tls_setup | ( | void | ) |
ZTEST | ( | thread_tls | , |
test_tls | |||
) |
ZTEST_SUITE | ( | thread_tls | , |
NULL | , | ||
thread_tls_setup | , | ||
NULL | , | ||
NULL | , | ||
NULL | |||
) |
ZTEST_USER | ( | thread_tls | , |
test_tls_userspace | |||
) |
struct k_mem_domain dom_common |
|
static |