1 /* SPDX-License-Identifier: BSD-3-Clause */
3 * cache.c: Cache maintenance routines for ARMv7-A and ARMv7-R
5 * Reference: ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition
8 #include <arch/cache.h>
10 void tlb_invalidate_all(void)
14 void dcache_clean_all(void)
18 void dcache_clean_invalidate_all(void)
22 void dcache_invalidate_all(void)
26 unsigned int dcache_line_bytes(void)
29 * TODO: Implement this correctly. For now we just return a
30 * reasonable value. It was added during Nyan development and
31 * may be used in bootblock code. It matters only if dcache is
37 void dcache_clean_by_mva(void const *addr
, size_t len
)
41 void dcache_clean_invalidate_by_mva(void const *addr
, size_t len
)
45 void dcache_invalidate_by_mva(void const *addr
, size_t len
)
49 void dcache_mmu_disable(void)
53 void dcache_mmu_enable(void)
57 void cache_sync_instructions(void)