当前位置:网站首页>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.
边栏推荐
- 《安富莱嵌入式周报》第271期:2022.06.20--2022.06.26
- 牛逼|珍藏多年的工具让我实现了带薪摸鱼自由
- Study summary of dynamic routing between capsules
- Is there a shortage? No need to download the free online resources! 2022 favorites must have it!
- RP prototype resource sharing - shopping app
- 1-13 express listens to get and post requests & processes requests
- Best wishes for Lao Wu's party
- 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
- Vite2 is compatible with lower versions of chrome (such as Sogou 80). Some grammars requiring higher versions are processed through polyfills
- 请问,启牛证券开户,可以开户吗?安全吗?你想要的答案全在这里
猜你喜欢

周少剑,很少见

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

京东与腾讯续签三年战略合作协议;起薪涨至26万元,韩国三星SK争相加薪留住半导体人才;Firefox 102 发布|极客头条

The programmer's girlfriend gave me a fatigue driving test

Vite2 is compatible with lower versions of chrome (such as Sogou 80). Some grammars requiring higher versions are processed through polyfills
![[BSP video tutorial] BSP video tutorial issue 19: AES encryption practice of single chip bootloader, including all open source codes of upper and lower computers (June 26, 2022)](/img/ce/9ec74c4c26513e2479df29a1802168.png)
[BSP video tutorial] BSP video tutorial issue 19: AES encryption practice of single chip bootloader, including all open source codes of upper and lower computers (June 26, 2022)

How to upload binary pictures in uniapp

Installing jupyter notebook under Anaconda

Anfulai embedded weekly report no. 270: June 13, 2022 to June 19, 2022

Analysis of PostgreSQL storage structure
随机推荐
【回溯】全排列 II leetcode47
Document layout analysis: a comprehensive survey 2019 paper learning summary
RP prototype resource sharing - shopping app
开发属于自己的包
Graduation project
Stimulate new kinetic energy to develop digital economy in multiple places
兴奋神经递质——谷氨酸与大脑健康
Excitatory neurotransmitter glutamate and brain health
Develop your own package
A comprehensive understanding of gout: symptoms, risk factors, pathogenesis and management
1-19 利用CORS解决接口跨域问题
Develop technology - get time 10 minutes ago
Uniapp routing uni simple router
Apache服务器OpenSSL升级
Go Web 编程入门: 一探优秀测试库 GoConvey
国产数据库乱象
1-10 根据不同的url响应客户端的内容
从PG15 XID64再次跳票说起
Coredns modifying upstream
Alibaba Kube eventer MySQL sink simple usage record