summaryrefslogtreecommitdiff
path: root/libcpu/aarch64/common/cache.h
diff options
context:
space:
mode:
authorShell <[email protected]>2022-12-20 17:49:37 +0800
committerGitHub <[email protected]>2022-12-20 17:49:37 +0800
commite8504c7cf1d03c07608e2197eaef728a6aecde7a (patch)
tree744bbacef2efbd8afbf04cc63e4d287b38ebcc65 /libcpu/aarch64/common/cache.h
parentf0ef8ada33833942684a6280314160de8c355302 (diff)
[smart/aarch64] code sync (#6750)
* [smart/aarch64] sync aarch64
Diffstat (limited to 'libcpu/aarch64/common/cache.h')
-rw-r--r--libcpu/aarch64/common/cache.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/libcpu/aarch64/common/cache.h b/libcpu/aarch64/common/cache.h
new file mode 100644
index 0000000000..35b9893802
--- /dev/null
+++ b/libcpu/aarch64/common/cache.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2006-2022, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2022-12-18 RT-Thread the first version
+ */
+
+#ifndef __CACHE_H__
+#define __CACHE_H__
+
+void rt_hw_dcache_flush_all(void);
+void rt_hw_dcache_invalidate_all(void);
+void rt_hw_dcache_flush_range(unsigned long start_addr, unsigned long size);
+void rt_hw_cpu_dcache_clean(void *addr, int size);
+void rt_hw_cpu_dcache_invalidate(unsigned long start_addr,unsigned long size);
+
+void rt_hw_icache_invalidate_all();
+void rt_hw_icache_invalidate_range(unsigned long start_addr, int size);
+
+#endif /* __CACHE_H__ */