当前位置:网站首页>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.
边栏推荐
- 1-2 安装并配置MySQL相关的软件
- 1-1 basic concepts of database
- Which direction should college students choose to find jobs after graduation?
- JD and Tencent renewed the three-year strategic cooperation agreement; The starting salary rose to 260000 yuan, and Samsung sk of South Korea scrambled for a raise to retain semiconductor talents; Fir
- 根据肠道微生物组重新思考健康饮食
- Anfulai embedded weekly report no. 271: June 20, 2022 to June 26, 2022
- Apache服务器OpenSSL升级
- Is machine learning suitable for girls?
- 艾芬医生事件解析
- The programmer's girlfriend gave me a fatigue driving test
猜你喜欢
Starting from pg15 xid64 ticket skipping again
Introduction and example of template method mode
JD and Tencent renewed the three-year strategic cooperation agreement; The starting salary rose to 260000 yuan, and Samsung sk of South Korea scrambled for a raise to retain semiconductor talents; Fir
Nacos部署及使用
Installing jupyter notebook under Anaconda
Usbcan analyzer's supporting can and canfd comprehensive test software lkmaster software solves engineers' can bus test problems
Notes [introduction to JUC package and future]
Error filesystemexception: /data/nodes/0/indices/gttxk-hntgkhacm-8n60jw/1/index/ es_ temp_ File: structure needs cleaning
Pytorch quantitative practice (1)
How to upload binary pictures in uniapp
随机推荐
1-2 install and configure MySQL related software
Analysis of PostgreSQL storage structure
Pytorch quantitative perception training (qat) steps
[introduction to MySQL] the first conversation · first time in the "database" Mainland
交易所系统开发如何开发?数字货币交易所系统开发成熟技术案例
Uniapp rich text editor
Introduce an online platform for multi omics integration and network visual analysis
1-17 express中间件
Qsort function and Simulation Implementation of qsort function
How to upload binary pictures in uniapp
1-20 pre inspection request
Document layout analysis: a comprehensive survey 2019 paper learning summary
根据肠道微生物组重新思考健康饮食
How to judge whether the JS object is empty
Analysis of doctor Aifen's incident
The Jenkins download Plug-in can't be downloaded. Solution
Graduation project
1-14 express托管静态资源
机器学习适合女生学吗?
《安富莱嵌入式周报》第271期:2022.06.20--2022.06.26