bsps/aarch64: Advertise cache function support

Ensure that cache functions are flagged as usable by the generic cache
implementation code.
This commit is contained in:
Kinsey Moore
2021-05-27 14:09:00 -05:00
committed by Joel Sherrill
parent 12ec459f4a
commit 8810e08371
+10
View File
@@ -39,6 +39,16 @@
#include <bsp/utility.h>
#include <rtems/score/aarch64-system-registers.h>
#define CPU_DATA_CACHE_ALIGNMENT 64
#define CPU_INSTRUCTION_CACHE_ALIGNMENT 64
#define CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS
#define CPU_CACHE_SUPPORT_PROVIDES_CACHE_SIZE_FUNCTIONS
#define CPU_CACHE_SUPPORT_PROVIDES_DISABLE_DATA
#define AARCH64_CACHE_L1_CPU_DATA_ALIGNMENT ( (size_t) 64 )
#define AARCH64_CACHE_PREPARE_MVA(mva) (const void *) \
RTEMS_ALIGN_DOWN ( (size_t) mva, AARCH64_CACHE_L1_CPU_DATA_ALIGNMENT )