WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_cache

函数

void osal_dcache_region_wb (void *kvirt, unsigned long phys_addr, unsigned long size)
 flush DCache.
 
void osal_dcache_region_inv (void *addr, unsigned long size)
 invalid DCache.
 
void osal_dcache_region_clean (void *addr, unsigned int size)
 clean DCache.
 
void osal_arch_dcache_flush_by_va (void *base_addr, unsigned int size)
 flush DCache.
 
void osal_arch_dcahce_inv_by_va (void *base_addr, unsigned int size)
 invalid DCache.
 

详细描述

函数说明

◆ osal_arch_dcache_flush_by_va()

void osal_arch_dcache_flush_by_va ( void *  base_addr,
unsigned int  size 
)

flush DCache.

Description:
This API is used to flush DCache.
Support System:
seliteos.

◆ osal_arch_dcahce_inv_by_va()

void osal_arch_dcahce_inv_by_va ( void *  base_addr,
unsigned int  size 
)

invalid DCache.

Description:
This API is used to invalid DCache.
Support System:
seliteos.

◆ osal_dcache_region_clean()

void osal_dcache_region_clean ( void *  addr,
unsigned int  size 
)

clean DCache.

Description:
This API is used to clean DCache.
Support System:
liteos.
Description: This API is used to clean DCache.
注意
The API will clean DCache according to based address and input size.

◆ osal_dcache_region_inv()

void osal_dcache_region_inv ( void *  addr,
unsigned long  size 
)

invalid DCache.

Description:
This API is used to invalid DCache.
注意
The base address will be aligned to CACHE_LINE_SIZE(32Bytes) if it's not aligned to CACHE_LINE_SIZE.
参数
addr[in] The start address need flush.
size[in] The size of flush memory.
Support System:
linux liteos seliteos.

invalid DCache.

参数
addr[IN] The start address need invalid.
size[IN] The size of invalid memory.

◆ osal_dcache_region_wb()

void osal_dcache_region_wb ( void *  kvirt,
unsigned long  phys_addr,
unsigned long  size 
)

flush DCache.

Description:
This API is used to flush DCache.
注意
The base address will be aligned to CACHE_LINE_SIZE(32Bytes) if it's not aligned to CACHE_LINE_SIZE. Make sure that phys_addr is valid when mmu does not exist, and user set its addr in kvirt.
参数
kvirt[in] kvirt.
phys_addr[in] The start address need flush.
size[in] The size of flush memory.
Support System:
linux liteos seliteos.

flush DCache.

参数
phys_addr[IN] The start address need flush.
size[IN] The size of flush memory.