27#define INHERIT_STACK_SIZE CONFIG_MAIN_STACK_SIZE
28#define SEMAPHORE_MAX_COUNT (10)
29#define SEMAPHORE_INIT_COUNT (0)
30#define SYNC_SEM_MAX_COUNT (1)
31#define SYNC_SEM_INIT_COUNT (0)
32#define MSG_Q_SIZE (10)
33#define MSG_Q_MAX_NUM_MSGS (10)
34#define MSG_Q_ALIGN (2)
36#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
37#define BLK_SIZE_MIN 16
38#define BLK_SIZE_MAX 64
41#define BLK_ALIGN BLK_SIZE_MIN
42#define SEM_INIT_VAL (0U)
43#define SEM_MAX_VAL (1U)
46#define MEM_DOMAIN_STACK_SIZE CONFIG_MAIN_STACK_SIZE
47#define MEM_PARTITION_INIT_NUM (1)
48#define BLK_SIZE_MIN_MD 8
49#define BLK_SIZE_MAX_MD 16
50#define BLK_NUM_MAX_MD 4
51#define BLK_ALIGN_MD BLK_SIZE_MIN_MD
52#define DESC_SIZE sizeof(struct sys_mem_pool_block)
53#define STACK_SIZE_MD (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
56#if defined(CONFIG_X86)
57#define MEM_REGION_ALLOC (4096)
58#elif defined(CONFIG_ARC)
59#define MEM_REGION_ALLOC (Z_ARC_MPU_ALIGN)
60#elif defined(CONFIG_ARM64)
61#define MEM_REGION_ALLOC (4096)
62#elif defined(CONFIG_ARM)
63#define MEM_REGION_ALLOC (Z_THREAD_MIN_STACK_ALIGN)
64#elif defined(CONFIG_RISCV)
65#if defined(CONFIG_RISCV_PMP)
66#define MEM_REGION_ALLOC (CONFIG_PMP_GRANULARITY)
68#define MEM_REGION_ALLOC (4)
70#elif defined(CONFIG_XTENSA)
71#define MEM_REGION_ALLOC (4096)
73#error "Test suite not compatible for the given architecture"
75#define MEM_DOMAIN_ALIGNMENT __aligned(MEM_REGION_ALLOC)
78#define KOBJECT_STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
82#if (defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || \
83 (defined(CONFIG_RISCV) && defined(CONFIG_64BIT)))
84#define TEST_HEAP_SIZE (2 << CONFIG_MAX_THREAD_BYTES) * 1024
87#define TEST_HEAP_SIZE (2 << CONFIG_MAX_THREAD_BYTES) * 256
91#ifndef _TEST_SYSCALLS_H_
92#define _TEST_SYSCALLS_H_
96#include <zephyr/syscalls/mem_protect.h>
static void set_fault_valid(bool valid)
Definition mem_protect.h:16
volatile bool valid_fault
Definition common.c:9
struct k_heap * ret_resource_pool_ptr(void)