forked from Imagelibrary/rtems
bsps/cache: Clarify range functions support
This commit is contained in:
@@ -21,9 +21,7 @@
|
|||||||
#ifndef __LIBCPU_CACHE_h
|
#ifndef __LIBCPU_CACHE_h
|
||||||
#define __LIBCPU_CACHE_h
|
#define __LIBCPU_CACHE_h
|
||||||
|
|
||||||
void _CPU_cache_flush_data_range(const void *d_addr, size_t n_bytes);
|
|
||||||
void _CPU_cache_flush_1_data_line(const void *d_addr);
|
void _CPU_cache_flush_1_data_line(const void *d_addr);
|
||||||
void _CPU_cache_invalidate_data_range(const void *d_addr, size_t n_bytes);
|
|
||||||
void _CPU_cache_invalidate_1_data_line(const void *d_addr);
|
void _CPU_cache_invalidate_1_data_line(const void *d_addr);
|
||||||
void _CPU_cache_freeze_data(void);
|
void _CPU_cache_freeze_data(void);
|
||||||
void _CPU_cache_unfreeze_data(void);
|
void _CPU_cache_unfreeze_data(void);
|
||||||
|
|||||||
@@ -20,9 +20,13 @@
|
|||||||
* rtems/c/src/lib/libcpu/CPU/cache_.h
|
* rtems/c/src/lib/libcpu/CPU/cache_.h
|
||||||
*
|
*
|
||||||
* The cache implementation header file can define
|
* The cache implementation header file can define
|
||||||
* CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS
|
*
|
||||||
|
* #define CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS
|
||||||
|
*
|
||||||
* if it provides cache maintenance functions which operate on multiple lines.
|
* if it provides cache maintenance functions which operate on multiple lines.
|
||||||
* Otherwise a generic loop with single line operations will be used.
|
* Otherwise a generic loop with single line operations will be used. It is
|
||||||
|
* strongly recommended to provide the implementation in terms of static
|
||||||
|
* inline functions for performance reasons.
|
||||||
*
|
*
|
||||||
* The functions below are implemented with CPU dependent inline routines
|
* The functions below are implemented with CPU dependent inline routines
|
||||||
* found in the cache.c files for each CPU. In the event that a CPU does
|
* found in the cache.c files for each CPU. In the event that a CPU does
|
||||||
|
|||||||
Reference in New Issue
Block a user