RTEMS  5.1
Functions
cache.h File Reference
#include <rtems/score/basedefs.h>

Go to the source code of this file.

Functions

size_t rtems_cache_get_data_line_size (void)
 Returns the data cache line size in bytes. More...
 
size_t rtems_cache_get_instruction_line_size (void)
 Returns the instruction cache line size in bytes. More...
 
size_t rtems_cache_get_maximal_line_size (void)
 Returns the maximal cache line size of all cache kinds in bytes. More...
 
size_t rtems_cache_get_data_cache_size (uint32_t level)
 Returns the data cache size in bytes. More...
 
size_t rtems_cache_get_instruction_cache_size (uint32_t level)
 Returns the instruction cache size in bytes. More...
 
void rtems_cache_flush_multiple_data_lines (const void *addr, size_t size)
 Flushes multiple data cache lines. More...
 
void rtems_cache_invalidate_multiple_data_lines (const void *addr, size_t size)
 Invalidates multiple data cache lines. More...
 
void rtems_cache_invalidate_multiple_instruction_lines (const void *addr, size_t size)
 Invalidates multiple instruction cache lines. More...
 
void rtems_cache_instruction_sync_after_code_change (const void *code_addr, size_t n_bytes)
 Ensure necessary synchronization required after code changes. More...
 
void rtems_cache_flush_entire_data (void)
 Flushes the entire data cache. More...
 
void rtems_cache_invalidate_entire_instruction (void)
 Invalidates the entire instruction cache. More...
 
void rtems_cache_invalidate_entire_data (void)
 
void rtems_cache_freeze_data (void)
 
void rtems_cache_unfreeze_data (void)
 
void rtems_cache_enable_data (void)
 
void rtems_cache_disable_data (void)
 
void rtems_cache_freeze_instruction (void)
 
void rtems_cache_unfreeze_instruction (void)
 
void rtems_cache_enable_instruction (void)
 
void rtems_cache_disable_instruction (void)
 
void * rtems_cache_aligned_malloc (size_t nbytes)
 
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. More...
 
void rtems_cache_coherent_free (void *ptr)
 Frees memory allocated by rtems_cache_coherent_allocate(). More...
 
void rtems_cache_coherent_add_area (void *area_begin, uintptr_t area_size)
 Adds a cache coherent memory area to the cache coherent allocator. More...