[PATCH v2 3/6] bsps/aarch64: Advertise cache function support

Kinsey Moore kinsey.moore at oarcorp.com
Wed May 26 21:01:45 UTC 2021


Ensure that cache functions are flagged as usable by the generic cache
implementation code.
---
 bsps/aarch64/shared/cache/cache.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/bsps/aarch64/shared/cache/cache.c b/bsps/aarch64/shared/cache/cache.c
index 47722c21e4..9e7446a077 100644
--- a/bsps/aarch64/shared/cache/cache.c
+++ b/bsps/aarch64/shared/cache/cache.c
@@ -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 )
-- 
2.20.1



More information about the devel mailing list