当前位置:网站首页>B_ QuRT_ User_ Guide(32)
B_ QuRT_ User_ Guide(32)
2022-06-30 22:04:00 【weixin_ thirty-eight million four hundred and ninety-eight thou】
B_QuRT_User_Guide(32 )
21.10 qurt_mem_cache_clean2()
21.10.1 Function document
21.10.1.1 int qurt_mem_cache_clean2 ( qurt_addr_t addr, qurt_size_t size, qurt_mem_cache_op_t opcode, qurt_mem_cache_type_t type )
Perform a data cache cleanup operation on the data stored in the specified memory area . The API Only perform the following data cache operations .
- qurt_mem_cache_flush
- qurt_mem_cache_invalidate
- qurt_mem_cache_flush_invalidate
This operation washes away / Verified from start address to end address ( Start address + size ) The contents of all cached rows . If the contents of adjacent buffers fall in any buffer line , Can be refreshed / verification .
Related data types
qurt_addr_t
qurt_size_t
qurt_mem_cache_op_t
qurt_mem_cache_type_t
Parameters 
Return value
QURT_EOK – Cache operation performed successfully.
QURT_EVAL – Invalid cache type.
Dependencies
None.
21.11 qurt_mem_cache_phys_clean()
21.11.1 Function document
21.11.1.1 int qurt_mem_cache_phys_clean ( unsigned int mask, unsigned int addrmatch, qurt_mem_cache_op_t opcode )
Match and mask according to the address , Perform cache cleanup on the data stored in the specified memory area . When (LINE.PhysicalPageNumber & MASK) == ADDRMATCH when , Operate on a cache row .
Be careful :addrmatch The value should be the upper... To match 24 Bit physical address .
Related data types
qurt_mem_cache_op_t
Parameters 
Return value
QURT_EOK - Cache operation successfully executed .
QURT_EVAL - Invalid operation
Dependencies
None.
21.12 qurt_mem_configure_cache_partition()
21.12.1 Function document
21.12.1.1 int qurt_mem_configure_cache_partition ( qurt_cache_type_t cache_type, qurt_cache_partition_size_t partition_size )
Configure at the system level Hexagon Cache partition .
Partition size value SEVEN_EIGHTHS_SIZE Only applicable to L2 cache . stay Hexagon Processor version V60 Or later versions do not support L1 Cache partition . Be careful : Only in QuRT This operation is called with the permission of the operating system .
Related data types
qurt_cache_type_t
qurt_cache_partition_size_t
Parameters 
Return value
QURT_EOK – Success.
QURT_EVAL – Error.
Dependencies
None.
## 21.12 qurt_mem_configure_cache_partition()
21.13 qurt_mem_l2cache_line_lock()
21.13.1 Function document
21.13.1.1 int qurt_mem_l2cache_line_lock ( qurt_addr_t addr, qurt_size_t size )
Configure at the system level Hexagon Cache partition .
Partition size value SEVEN_EIGHTHS_SIZE Only applicable to L2 cache . stay Hexagon Processor version V60 Or later versions do not support L1 Cache partition . Be careful : Only in QuRT This operation is called with the permission of the operating system .
Related data types
qurt_addr_t
qurt_size_t
Parameters 
Return value
QURT_EOK - success .
QURT_EALIGN - Data alignment or address failure .
Dependencies
None.
21.14 qurt_mem_l2cache_line_unlock()
21.14.1 Function document
21.14.1.1 int qurt_mem_l2cache_line_unlock ( qurt_addr_t addr, qurt_size_t size )
Perform an unlocking operation of L2 cache rows . This function is in the L2 Unlock selective rows in the cache .
Selective lines in memory .
Be careful : Only right 32 The byte aligned size and address perform the row unlocking operation .
Related data types
qurt_addr_t
qurt_size_t
Parameters 
Return value
QURT_EOK - success .
QURT_EALIGN - Failed to align data or address .QURT_EFAILED - operation failed , Cannot find a matching tag .
Dependencies
None.
21.15 qurt_mem_map_static_query()
21.15.1 Function document
21.15.1.1 int qurt_mem_map_static_query ( qurt_addr_t ∗ vaddr, qurt_addr_t paddr, unsigned int page_size, qurt_mem_cache_mode_t cache_attribs, qurt_perm_t perm )
Determines whether a memory page is statically mapped . The page is specified by the following properties : Physical address 、 Page size 、 Cache mode and memory permissions .
- If the specified page is statically mapped ,vaddr Return the virtual address of the page .
- If the page is not statically mapped ( Or the specified page does not exist ),vaddr return -1 As a virtual address value .
The system configuration file defines QuRT Memory mapping .
Related data types
qurt_addr_t
qurt_mem_cache_mode_t
qurt_perm_t
Parameters
Return value
QURT_EOK - The specified page is statically mapped ,vaddr Return the virtual address .QURT_EMEM - The specified page is not statically mapped ,vaddr return -1.QURT_EVAL - The specified page does not exist .
Dependencies
None.
边栏推荐
- 5G 在智慧医疗中的需求
- [untitled] first time to participate in CSDN activities
- [backtracking] full arrangement leetcode46
- Best wishes for Lao Wu's party
- Analysis of doctor Aifen's incident
- jupyterbook 清空控制台输出
- Rethink healthy diet based on intestinal microbiome
- VIM common shortcut keys
- 机器学习中如何使用数据集?
- Gartner focuses on low code development in China how UNIPRO practices "differentiation"
猜你喜欢

Domestic database disorder

Jupyterbook clear console output

Deployment and use of Nacos

Do machine learning jobs require graduate students?

Zhoushaojian, rare

牛逼|珍藏多年的工具让我实现了带薪摸鱼自由

A comprehensive understanding of gout: symptoms, risk factors, pathogenesis and management

興奮神經遞質——穀氨酸與大腦健康

盘点华为云GaussDB(for Redis)六大秒级能力

RP prototype resource sharing - shopping app
随机推荐
十个最为戳心测试/开程序员笑话,念茫茫人海,该如何寻觅?
阿婆做的臭豆腐
在启牛开的股票账户安全吗?如何申请低佣金的股票账户?
Do a scrollbar thinking
Notes [introduction to JUC package and future]
1-15 nodemon
Is machine learning suitable for girls?
将Nagios监控信息存入MySQL
Summary of errors reported when using YML file to migrate CONDA environment
模板方法模式介绍与示例
1-1 basic concepts of database
[career planning for Digital IC graduates] Chap.1 overview of IC industry chain and summary of representative enterprises
Akk bacteria - the next generation of beneficial bacteria
周少剑,很少见
Prediction and regression of stacking integrated model
Do machine learning jobs require graduate students?
去中心化交易所系统开发技术原理丨数字货币去中心化交易所系统开发(说明案例)
1-13 express监听GET和POST请求&处理请求
Docker installing MySQL
Installing jupyter notebook under Anaconda