[PATCH v1 3/6] bsps/aarch64: Advertise cache function support
Kinsey Moore
kinsey.moore at oarcorp.com
Mon May 24 20:29:40 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 240cfb043a..76465aeb86 100644
--- a/bsps/aarch64/shared/cache/cache.c
+++ b/bsps/aarch64/shared/cache/cache.c
@@ -39,6 +39,16 @@
#include <bsp/utility.h>
#include <bsp/aarch64-sysregs.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_L1_DATA_LINE_MASK \
( AARCH64_CACHE_L1_CPU_DATA_ALIGNMENT - 1 )
--
2.20.1
More information about the devel
mailing list