当前位置:网站首页>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.
边栏推荐
- Playwright之录制
- Expose testing outsourcing companies. You may have heard such a voice about outsourcing
- 每日刷题记录 (十三)
- [wave modeling 1] theoretical analysis and MATLAB simulation of wave modeling
- 资深测试/开发程序员写下无bug?资历(枷锁)不要惧怕错误......
- NPM install error forced installation
- Basic operations of database and table ----- create index
- BGP comprehensive experiment
- POAP:NFT的采用入口?
- Global and Chinese markets of radiation linear accelerators 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
![抓包整理外篇——————状态栏[ 四]](/img/88/8267ab92177788ac17ab665a90b781.png)
抓包整理外篇——————状态栏[ 四]

Reasons and solutions of redis cache penetration and avalanche

Chia Tai International Futures: what is the master account and how to open it?

User login function: simple but difficult

dotnet-exec 0.6.0 released

多模输入事件分发机制详解
![[STM32] (I) overview and GPIO introduction](/img/6e/421238a892b557721e85c919a4eeb1.jpg)
[STM32] (I) overview and GPIO introduction

Delaying wages to force people to leave, and the layoffs of small Internet companies are a little too much!

Visual explanation of Newton iteration method

整理混乱的头文件,我用include what you use
随机推荐
创新引领方向 华为智慧生活全场景新品齐发
7. Scala process control
[pure tone hearing test] pure tone hearing test system based on MATLAB
Yyds dry goods inventory kubernetes management business configuration methods? (08)
Database performance optimization tool
dotnet-exec 0.6.0 released
实战模拟│JWT 登录认证
【大型电商项目开发】性能压测-优化-中间件对性能的影响-40
资深测试/开发程序员写下无bug?资历(枷锁)不要惧怕错误......
Take you ten days to easily complete the go micro service series (IX. link tracking)
每日刷题记录 (十三)
【Unity】InputSystem
测试部新来了个00后卷王,上了年纪的我真的干不过了,已经...
Hill sort of sorting
Senior Test / development programmers write no bugs? Qualifications (shackles) don't be afraid of mistakes
[Yocto RM]10 - Images
Several simplified forms of lambda expression
【FPGA教程案例9】基于vivado核的时钟管理器设计与实现
抓包整理外篇——————状态栏[ 四]
Single step debugging of master data reading of SAP commerce cloud products