当前位置:网站首页>Pentium fast system call learning
Pentium fast system call learning
2022-07-27 23:24:00 【bcbobo21cn】
Fast system call
System call is realized by soft interrupt instruction . stay x86 In protected mode , Handle INT Soft interrupt command ,CPU First, from the interrupt description table IDT Take out the corresponding door descriptor , Determine the type of gate descriptor , Then check the level of the door descriptor DPL and INT The level of the instruction caller CPL, When CPL Less than or equal to DPL, in other words INT When the caller level is higher than the level specified by the descriptor , To successfully call , Finally, according to the content of the descriptor , Stack 、 Jump and permission level promotion . After the kernel code is executed , call IRET Command return ,IRET Command recovery user stack , And jump back to low-level code . This series of permission checks will cost a lot CPU cycle .
Intel stay Pentium II A new pair of instructions has been introduced into the processor SYSENTER/SYSEXIT, For fast system calls .SYSENTER Used to enter the kernel state ,SYSEXIT Used to return from kernel state . These two instructions avoid permission checking , Set the processor directly to the predefined run level . At the same time, the execution environment information required by the system call is saved in a set of model related registers (MSR) in , Avoid accessing memory , Further improve the speed of entering the kernel state .
边栏推荐
- Introduction to the paper | distributed graph simulation
- Google executives: 40% of "generation Z" are more willing to use tiktok to cannibalize Google's core products
- Complete Guide to IOT architecture
- Arm32 for remote debugging
- 【 图像去雾】基于暗通道和非均值滤波实现图像去雾附matlab代码
- 只会Excel想做图表可视化,让数据动起来?可以,快来围观啦(附大量模板下载)
- 微信安装包11年膨胀575倍,UP主:“98%的文件是垃圾”;苹果应用商店被曝大量色情App;四大科技巨头呼吁废除闰秒|极客头条
- Exam summary on May 31, 2022
- Basic SQL general syntax and classification
- C language explanation series -- understanding of functions (5) function recursion and iteration
猜你喜欢

On data management of data warehouse

AWS DynamoDB运用技巧

Do you want to be dismissed? Let's take a look at the "exit tips" of programmers

MySQL basic installation and startup

Interviewer: I can't carry a backpack at all. Are you going by yourself or I'll give you a lift?

图论的小技巧以及扩展

Application skills of AWS dynamodb

The significance of enterprise digital transformation, digital transformation is not a choice

Deploy dolphin scheduler high availability cluster based on rainbow

网络开发套接字以及UDP、TCP协议
随机推荐
[stonedb fault diagnosis] database instance crash
【ELM分类】基于核极限学习机和极限学习机实现UCI数据集分类附matlab代码
Understanding and use of third-party library
Read an article to understand artificial neural network
在所有浏览器中禁用带有元 HTML 标记的缓存
Redis网红高频面试题三连:缓存穿透?缓存击穿?缓存雪崩?
Pyqt5 rapid development and practice 4.9 dialog controls
网络开发套接字以及UDP、TCP协议
Tips and extensions of graph theory
对象创建过程及对象布局
[idea] fluency optimization
Application skills of AWS dynamodb
毕设-基于SSM高校后勤管理系统
2022/3/10 exam summary
[noi2018] return (Kruskal reconstruction tree / persistent and search set)
许锦波:AI蛋白质预测与设计
Three consecutive high-frequency interview questions of redis online celebrity: cache penetration? Cache breakdown? Cache avalanche?
深入了解 XXE 注射
Harmonyos third operation
云计算服务主要安全风险及应对措施