[rtems commit] bsps/aarch64: Advertise cache function support

Joel Sherrill joel at rtems.org
Thu May 27 19:09:09 UTC 2021


Module:    rtems
Branch:    master
Commit:    8810e08371d007e92e87fe797eb3474f41855905
Changeset: http://git.rtems.org/rtems/commit/?id=8810e08371d007e92e87fe797eb3474f41855905

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Tue May 18 14:49:20 2021 -0500

bsps/aarch64: Advertise cache function support

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 47722c2..9e7446a 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 )



More information about the vc mailing list