summaryrefslogtreecommitdiff
path: root/libcpu/aarch64/common/cache.h
diff options
context:
space:
mode:
authorShell <[email protected]>2024-06-28 00:23:09 +0800
committerGitHub <[email protected]>2024-06-28 00:23:09 +0800
commit90917cc75af9406834c14fd25140405ba6f72d6d (patch)
treee5ac39bbcb922d380a272c4d80ed439ad316604b /libcpu/aarch64/common/cache.h
parent3d8c27bcc998c0a43aedc069a4a826e349b85485 (diff)
[format] cleanup libcpu/aarch64 (#8950)
* [dfs] fixup compiler warning Signed-off-by: Shell <[email protected]> * [format] libcpu/arm64: separate context switching codes Signed-off-by: Shell <[email protected]> * [format] libcpu/arm64: separate vector Signed-off-by: Shell <[email protected]> * [format] libcpu/arm64: separate context_gcc.S Signed-off-by: Shell <[email protected]> * [format] libcpu/arm64: moving headers to include directory Signed-off-by: Shell <[email protected]> * style: replace tab with space --------- Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'libcpu/aarch64/common/cache.h')
-rw-r--r--libcpu/aarch64/common/cache.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/libcpu/aarch64/common/cache.h b/libcpu/aarch64/common/cache.h
deleted file mode 100644
index ef7b235d0e..0000000000
--- a/libcpu/aarch64/common/cache.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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__
-
-#include <rtdef.h>
-
-void __asm_invalidate_icache_all(void);
-
-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, unsigned long size);
-void rt_hw_cpu_dcache_invalidate(void *start_addr, unsigned long size);
-
-static inline void rt_hw_icache_invalidate_all(void)
-{
- /* wait for previous modification to complete */
- __asm__ volatile ("dsb ishst");
-
- __asm__ volatile ("ic ialluis");
- /* wait for ic to retire */
- __asm__ volatile ("dsb nsh");
- /* flush instruction pipeline */
- __asm__ volatile ("isb");
-}
-
-void rt_hw_cpu_icache_invalidate(void *addr, rt_size_t size);
-void rt_hw_cpu_dcache_clean_and_invalidate(void *addr, rt_size_t size);
-
-#endif /* __CACHE_H__ */