关于IRET指令
来源:互联网 发布:内核参数优化 编辑:程序博客网 时间:2024/06/06 07:15
当使用IRET指令返回到相同保护级别的任务时,IRET会从堆栈弹出代码段选择子及指令指针分别到CS与IP寄存器,并弹出标志寄存器内容到EFLAGS寄存器。
当使用IRET指令返回到一个不同的保护级别时,IRET不仅会从堆栈弹出以上内容,还会弹出堆栈段选择子及堆栈指针分别到SS与SP寄存器。
IA-32指令手册关于这一点描述的很清楚,原文如下:
the IRET instruction pops the return instruction pointer, return code segment selector, and EFLAGS image from the stack to the EIP, CS, and EFLAGS registers, respectively, and then resumes execution of the interrupted program or procedure. If the return is to another privilege level, the IRET instruction also pops the stack pointer and SS from the stack, before resuming program execution.
当使用IRET指令返回到一个不同的保护级别时,IRET不仅会从堆栈弹出以上内容,还会弹出堆栈段选择子及堆栈指针分别到SS与SP寄存器。
IA-32指令手册关于这一点描述的很清楚,原文如下:
the IRET instruction pops the return instruction pointer, return code segment selector, and EFLAGS image from the stack to the EIP, CS, and EFLAGS registers, respectively, and then resumes execution of the interrupted program or procedure. If the return is to another privilege level, the IRET instruction also pops the stack pointer and SS from the stack, before resuming program execution.
- 关于IRET指令
- iret指令
- IRET指令详解
- iret指令详解
- 汇编,ret retf iret指令
- iret
- 特权级0的代码到特权级3代码的转移之IRET指令
- ret & IRET
- IRET/IRETD - 中断返回
- ret/retf/iret
- ret,retf,iret的区别
- 关于编译指令
- 关于预处理指令#和##
- 关于#pragma指令
- 关于PCL指令格式
- 关于LEA指令
- 关于#pragma指令
- 关于#pragma指令(2)
- 解决Windows Modules Installer服务无法启动
- 十九、一套规则限制的校验
- 如何进行个人知识管理?(一)
- shell编程用得到的正则表达式元字符
- [面经]百度商务搜索部实习生面经(已经被拒,倒在三面上了)
- 关于IRET指令
- x86架构与ARM架构处理器
- 基于华为smproxy_20040730.jar的CMPP和SMPP的短信构造(支持长短信)
- 文思工资查询地址
- mybatis 使用总结
- 表格里单词不换行问题解决
- mysql中主键包含多字段问题
- 关于register_globals的问题
- Java如何打包成.exe