1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2019-03-29 quanzhao the first version 9 */ 10 11 #ifndef __CACHE_H__ 12 #define __CACHE_H__ 13 14 void rt_hw_cpu_icache_invalidate(void *addr, int size); 15 void rt_hw_cpu_dcache_clean_and_invalidate(void *addr, int size); 16 rt_hw_icache_invalidate_all(void)17static inline void rt_hw_icache_invalidate_all(void) 18 { 19 __asm__ volatile("mcr p15, 0, %0, c7, c5, 0"::"r"(0ul)); 20 } 21 22 #endif /* __CACHE_H__ */ 23