15 #ifndef _RTEMS_RTEMS_CACHE_H 16 #define _RTEMS_RTEMS_CACHE_H 20 #if defined( RTEMS_SMP ) 21 #include <sys/cpuset.h> 156 const void * code_addr,
void * rtems_cache_aligned_malloc(size_t nbytes)
Definition: cachealignedalloc.c:16
void * rtems_cache_coherent_allocate(size_t size, uintptr_t alignment, uintptr_t boundary)
Allocates a memory area of size size bytes from cache coherent memory.
Definition: cachecoherentalloc.c:35
void rtems_cache_enable_instruction(void)
Definition: cacheimpl.h:398
void rtems_cache_instruction_sync_after_code_change(const void *code_addr, size_t n_bytes)
Ensure necessary synchronization required after code changes.
Definition: cacheimpl.h:444
void rtems_cache_invalidate_entire_data(void)
Definition: cacheimpl.h:190
void rtems_cache_disable_instruction(void)
Definition: cacheimpl.h:406
void rtems_cache_freeze_data(void)
Definition: cacheimpl.h:229
void rtems_cache_enable_data(void)
Definition: cacheimpl.h:244
void rtems_cache_invalidate_multiple_instruction_lines(const void *addr, size_t size)
Invalidates multiple instruction cache lines.
Definition: cacheimpl.h:323
void rtems_cache_flush_multiple_data_lines(const void *addr, size_t size)
Flushes multiple data cache lines.
Definition: cacheimpl.h:108
void rtems_cache_coherent_free(void *ptr)
Frees memory allocated by rtems_cache_coherent_allocate().
Definition: cachecoherentalloc.c:63
void rtems_cache_invalidate_multiple_data_lines(const void *addr, size_t size)
Invalidates multiple data cache lines.
Definition: cacheimpl.h:142
void rtems_cache_disable_data(void)
Definition: cacheimpl.h:253
size_t rtems_cache_get_data_cache_size(uint32_t level)
Returns the data cache size in bytes.
Definition: cacheimpl.h:215
size_t rtems_cache_get_data_line_size(void)
Returns the data cache line size in bytes.
Definition: cacheimpl.h:205
void rtems_cache_unfreeze_instruction(void)
Definition: cacheimpl.h:390
size_t rtems_cache_get_maximal_line_size(void)
Returns the maximal cache line size of all cache kinds in bytes.
Definition: cacheimpl.h:414
void rtems_cache_freeze_instruction(void)
Definition: cacheimpl.h:383
void rtems_cache_unfreeze_data(void)
Definition: cacheimpl.h:236
size_t rtems_cache_get_instruction_line_size(void)
Returns the instruction cache line size in bytes.
Definition: cacheimpl.h:359
void rtems_cache_coherent_add_area(void *area_begin, uintptr_t area_size)
Adds a cache coherent memory area to the cache coherent allocator.
Definition: cachecoherentalloc.c:108
void rtems_cache_invalidate_entire_instruction(void)
Invalidates the entire instruction cache.
Definition: cacheimpl.h:344
void rtems_cache_flush_entire_data(void)
Flushes the entire data cache.
Definition: cacheimpl.h:175
unsigned size
Definition: tte.h:74
size_t rtems_cache_get_instruction_cache_size(uint32_t level)
Returns the instruction cache size in bytes.
Definition: cacheimpl.h:369