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

Go to the source code of this file.

Macros

#define THREAD_STACK_USER_REGION   0x0
 
#define THREAD_STACK_REGION   0x1
 
#define THREAD_APP_DATA_REGION   0x2
 
#define THREAD_STACK_GUARD_REGION   0x3
 
#define THREAD_DOMAIN_PARTITION_REGION   0x4
 

Functions

void arc_core_mpu_configure_mem_domain (struct k_thread *thread)
 
void arc_core_mpu_remove_mem_domain (struct k_mem_domain *mem_domain)
 
void arc_core_mpu_remove_mem_partition (struct k_mem_domain *domain, uint32_t partition_id)
 
int arc_core_mpu_get_max_domain_partition_regions (void)
 
int arc_core_mpu_buffer_validate (const void *addr, size_t size, int write)
 
void configure_mpu_thread (struct k_thread *thread)
 

Macro Definition Documentation

◆ THREAD_APP_DATA_REGION

#define THREAD_APP_DATA_REGION   0x2

◆ THREAD_DOMAIN_PARTITION_REGION

#define THREAD_DOMAIN_PARTITION_REGION   0x4

◆ THREAD_STACK_GUARD_REGION

#define THREAD_STACK_GUARD_REGION   0x3

◆ THREAD_STACK_REGION

#define THREAD_STACK_REGION   0x1

◆ THREAD_STACK_USER_REGION

#define THREAD_STACK_USER_REGION   0x0

Function Documentation

◆ arc_core_mpu_buffer_validate()

int arc_core_mpu_buffer_validate ( const void *  addr,
size_t  size,
int  write 
)

◆ arc_core_mpu_configure_mem_domain()

void arc_core_mpu_configure_mem_domain ( struct k_thread thread)

◆ arc_core_mpu_get_max_domain_partition_regions()

int arc_core_mpu_get_max_domain_partition_regions ( void  )

◆ arc_core_mpu_remove_mem_domain()

void arc_core_mpu_remove_mem_domain ( struct k_mem_domain mem_domain)

◆ arc_core_mpu_remove_mem_partition()

void arc_core_mpu_remove_mem_partition ( struct k_mem_domain domain,
uint32_t  partition_id 
)

◆ configure_mpu_thread()

void configure_mpu_thread ( struct k_thread thread)