当前位置:网站首页>Pentium快速系统调用学习
Pentium快速系统调用学习
2022-07-27 20:23:00 【bcbobo21cn】
快速系统调用
系统调用是通过软中断指令来实现的。在x86保护模式中,处理INT软中断指令时,CPU首先从中断描述表IDT取出对应的门描述符,判断门描述符的种类,然后检查门描述符的级别DPL和INT指令调用者的级别CPL,当CPL小于等于DPL,也就是说INT调用者级别高于描述符指定级别时,才能成功调用,最后再根据描述符的内容,进行压栈、跳转和权限级别提升。内核代码执行完毕之后,调用IRET指令返回,IRET指令恢复用户栈,并跳转回低级别的代码。这一系列权限检查要消耗不少的CPU周期。
Intel在Pentium II 处理器中引入了一对新的指令SYSENTER/SYSEXIT,用于实现快速系统调用。SYSENTER用于进入内核态,SYSEXIT用于从内核态返回。这两条指令避免了权限检查,直接将处理器置为预定义的运行级别。同时通过将系统调用所需的执行环境信息保存在一组型号相关的寄存器(MSR)中,避免了访问内存,进一步提高进入内核态的速度。
边栏推荐
- Containerd CTR run the ansible container and execute the complete command of ansible playbook task
- Jeninkins offline deployment
- Quartus:Instantiation of ‘sdram_ model_ plus‘ failed. The design unit was not found.
- 毕设-基于SSM高校后勤管理系统
- Summary of exam on May 17, 2022
- Parameter transmission of components
- VIM editor tutorial
- Network development socket and UDP, TCP protocols
- Safety Fundamentals 1
- 你想被开除吗?来看看程序员「离职小技巧」吧
猜你喜欢

20 character short domain name bypass replication

Cloudcompare & PCL point cloud equally spaced slices

【数字识别】基于Hopfield神经网络识别0-9数字附Matlab代码

Dry goods semantic web, Web3.0, Web3, metauniverse, these concepts are still confused? (medium)

Excel VBA finds out the maximum and minimum values of a column of time, and repeatedly pastes multiple values according to the actual situation

浅析云原生应用安全组织架构

Cloudcompare & PCL platform convex hull method to calculate crown volume

Possible causes of index failure

Solve the problem that the last bit of IP address access is odd and even, or even and odd (the problem encountered when the cloud encryption machine connects to the cloud server, the whole process is
![[C language] simulate and implement string functions (Part 1)](/img/13/afb015de3448e20a0b7b09c1aca4ad.png)
[C language] simulate and implement string functions (Part 1)
随机推荐
Blender plug-in of 2022
Memoirs of three years in junior high school
The prefix is not removed when zuul gateway automatically routes
The wechat installation package has expanded 575 times in 11 years, and the up owner: "98% of the documents are garbage"; Apple App store was exposed to a large number of pornographic apps; Four techn
UDF and analysis cases of sparksql, 220726,,
对象创建过程及对象布局
Security-001
数据仓库项目从来不是技术项目
Convnext:a convnet for the 2020s - model Brief
MySQL的B+Tree索引到底是咋回事?聚簇索引到底是如何长高的?
How to narrow the gap between project planning and implementation?
【 图像去雾】基于暗通道和非均值滤波实现图像去雾附matlab代码
Arm32 for remote debugging
Tips and extensions of graph theory
Unity 的基础光照
containerd ctr运行ansible容器执行ansible-playbook任务完整命令
物联网架构完全指南
Vulnhub range double trouble
2022 / 4 / 11 exam summary
毕设-基于SSM高校后勤管理系统