当前位置:网站首页>Armv8-a programming guide MMU (3)
Armv8-a programming guide MMU (3)
2022-07-05 01:08:00 【Linux decoder】
2 Separation of kernel and application virtual address space
Operating systems usually have multiple applications or tasks running asynchronously . Each application has its own unique conversion table and the kernel switches from one conversion table to another , This is part of context switching between the two tasks . however , Most memory systems are only used by the kernel and have fixed virtual to physical address mappings , Conversion table entries are rarely modified .ARMv8 The architecture provides some features to effectively handle this requirement .
The base address of the conversion table has TTBR0_EL1 and TTBR1_EL1 Appoint . When VA All the high positions are 0 when , choice TTBR0 Conversion table to , When VA The high position of the 1 when , choice TTBR1 Selected conversion table . You can enable VA tagging Don't be too tall 8 Check the position .
The virtual address of instruction acquisition or data access of the processor is 64 position . But you have to be 48 Two defined areas are mapped in the bit physical address memory mapping .
EL2 and EL3 Only TTBR0, No, TTBR1, It means :
(1) If EL2 Use AArch64, It only uses the scope 0x0~0x0000ffffffffffff Of VA;
(2) If EL3 Use AArch64, It only uses the scope 0x0~0x0000ffffffffffff Of VA;
The following figure shows that the kernel space is mapped to the highest area of memory and the virtual address space is mapped to the lowest area of memory . however , Both are mapped to a smaller physical address space .

Conversion control register TCR_EL1 Defines the number of the highest bits that need to be checked .TCR_EL1 contain T0SZ[5:0] and T1SZ[5:0]. The number of this field gives the whole 0 Or all 1 The highest number of . The minimum and maximum values of these fields are specified here , according to granule The size and starting table level are different . therefore , You must always use both spaces , At least two conversion tables are required in all systems . Simple bare systems do not OS It is still required to include fault Table of items .

TCR_EL1 Controls the EL1 and EL0 Other memory management features of . The above figure only shows the control address range and graunule Size domain .

IPS The domain controls the maximum output address size . If the output address specified by the conversion is out of range , Error accessing ,000=32 Bit physical address ,101=48 position . two bit TG1 and TG0 Domain gives granularity of kernel or user space ,00=4KB,01=16KB,11=64KB.
You can configure the conversion table level for the first lookup . The complete conversion process requires three or four levels of page tables . You don't need to achieve all levels . The first level of search consists of granularity and TCR_ELn.TxSZ The domain determines . You can configure it separately TTBR0_EL1 and TTBR1_EL1.
边栏推荐
- Basic operation of database and table ----- phased test II
- Global and Chinese market of veterinary thermometers 2022-2028: Research Report on technology, participants, trends, market size and share
- [untitled]
- dotnet-exec 0.6.0 released
- Getting started with Paxos
- Arbitrum:二维费用
- What you learned in the eleventh week
- Redis(1)之Redis简介
- Mongodb series learning notes tutorial summary
- 大专学历,33岁宝妈又怎样?我照样销售转测试,月入13k+
猜你喜欢

Leetcode70 (Advanced), 322

How to use words to describe breaking change in Spartacus UI of SAP e-commerce cloud

Async/await you can use it, but do you know how to deal with errors?
![Grabbing and sorting out external articles -- status bar [4]](/img/88/8267ab92177788ac17ab665a90b781.png)
Grabbing and sorting out external articles -- status bar [4]

Applet live + e-commerce, if you want to be a new retail e-commerce, use it!

skimage: imread & imsave & imshow

Playwright之录制

【大型电商项目开发】性能压测-优化-中间件对性能的影响-40

Innovation leads the direction. Huawei Smart Life launches new products in the whole scene

“薪資倒掛”、“畢業生平替” 這些現象說明測試行業已經...
随机推荐
SAP UI5 应用的主-从-从(Master-Detail-Detail)布局模式的实现步骤
"Upside down salary", "equal replacement of graduates" these phenomena show that the testing industry has
MongoDB系列之学习笔记教程汇总
Intel sapphire rapids SP Zhiqiang es processor cache memory split exposure
Postman automatically fills headers
程序员SQL数据脚本编码能力弱,BI做不出来怎么办?
Inventory of more than 17 typical security incidents in January 2022
[pure tone hearing test] pure tone hearing test system based on MATLAB
【微处理器】基于FPGA的微处理器VHDL开发
揭露测试外包公司,关于外包,你或许听到过这样的声音
6. Scala operator
Safety learning week4
Huawei employs millions of data governance experts! The 100 billion market behind it deserves attention
【Unity】InputSystem
无心剑英译席慕容《无怨的青春》
The most complete regular practical guide of the whole network. You're welcome to take it away
【海浪建模1】海浪建模的理论分析和matlab仿真
Open3d uses GICP to register point clouds
Robley's global and Chinese markets 2022-2028: technology, participants, trends, market size and share Research Report
Redis(1)之Redis简介