Skip to main content

Crate moa_cache

Crate moa_cache 

Source
Expand description

CPU 缓存维护操作(D-cache / I-cache)

Functions§

cache_init
初始化缓存参数(读取硬件 cache line size 等)
clean_dcache_area
将指定区域的 D-cache 写回到内存(不无效化)
dcache_line_size
返回 D-cache line 大小(字节)
flush_dcache_area
将指定区域的 D-cache 写回并无效化
flush_icache_all
无效化全部 I-cache
flush_icache_range
无效化指定范围的 I-cache
inval_dcache_area
无效化指定区域的 D-cache(不写回)