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:419
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:465
void rtems_cache_invalidate_entire_data(void)
Definition: cacheimpl.h:191
void rtems_cache_disable_instruction(void)
Definition: cacheimpl.h:427
void rtems_cache_freeze_data(void)
Definition: cacheimpl.h:230
void rtems_cache_enable_data(void)
Definition: cacheimpl.h:245
void rtems_cache_invalidate_multiple_instruction_lines(const void *addr, size_t size)
Invalidates multiple instruction cache lines.
Definition: cacheimpl.h:344
void rtems_cache_flush_multiple_data_lines(const void *addr, size_t size)
Flushes multiple data cache lines.
Definition: cacheimpl.h:109
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:143
void rtems_cache_disable_data(void)
Definition: cacheimpl.h:254
size_t rtems_cache_get_data_cache_size(uint32_t level)
Returns the data cache size in bytes.
Definition: cacheimpl.h:216
size_t rtems_cache_get_data_line_size(void)
Returns the data cache line size in bytes.
Definition: cacheimpl.h:206
void rtems_cache_unfreeze_instruction(void)
Definition: cacheimpl.h:411
size_t rtems_cache_get_maximal_line_size(void)
Returns the maximal cache line size of all cache kinds in bytes.
Definition: cacheimpl.h:435
void rtems_cache_freeze_instruction(void)
Definition: cacheimpl.h:404
void rtems_cache_unfreeze_data(void)
Definition: cacheimpl.h:237
size_t rtems_cache_get_instruction_line_size(void)
Returns the instruction cache line size in bytes.
Definition: cacheimpl.h:380
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:365
void rtems_cache_flush_entire_data(void)
Flushes the entire data cache.
Definition: cacheimpl.h:176
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:390