mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-26 01:37:24 +08:00
eec78d9f5d
* [utest/mm] add testcase for create/init format codes of create/init in components/mm * [libcpu/aarch64] fix user stack check routine * [kservice] export API for utest * [utest/mm] testcase for aspace_map format & modify the files under components/mm related with aspace_map * [lwp/user_mm] add user_map_varea for mmap feature * [mm] rename rt_mm_fault_try_fix to rt_aspace_fault_try_fix * [utest/mm] testcase for synchronization * [mm] modify unmap api to improve throughput * [utest/mm] testcases for cache and varea map * [format] remove extra space * [utest/mm] fix testcase problem in header * [lwp] extend map_user_varea with a flag * [utest/mm] testcase for lwp_map_user_varea * [libcpu/arm/cortex-a] fix kernel space layout * [utest/mm] adjust for armv7 arch
33 lines
851 B
C
33 lines
851 B
C
/*
|
|
* 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)
|
|
{
|
|
__asm_invalidate_icache_all();
|
|
}
|
|
|
|
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__ */
|