【英特尔IA-32架构软件开发者开发手册第3卷:系统编程指南】2001年版翻译,2-38

文件下载与邀请翻译者

学习英特尔开发手册,最好手里这个手册文件。原版是PDF文件。点击下方链接了解下载方法。

讲解下载英特尔开发手册的文章

翻译英特尔开发手册,会是一件耗时费力的工作。如果有愿意和我一起来做这件事的,那么,欢迎你的加入。

另外,我不仅仅是打算翻译这一种手册,以后,可能还需要去翻译许多的英文技术文档

本节翻译

【原文】The processor does not automatically save the context of the x87 FPU, XMM, and MXCSR registers on a task switch. Instead it sets the TS flag, which causes the processor to raise an #NM exception whenever it encounters an x87 FPU, MMX, SSE, or SSE2 instruction in the instruction stream for the new task (with the exception of the instructions listed above). The fault handler for the #NM exception can then be used to clear the TS flag (with the CLTS instruction) and save the context of the x87 FPU, XMM, and MXCSR registers. If the task never encounters an x87 FPU, MMX, SSE, or SSE2 instruction, the x87 FPU, MMX, SSE, and SSE2 context is never saved.

【翻译】处理器不会在任务切换时自动保存x87 FPU、XMM和MXCSR寄存器的上下文。相反,它会设置TS标志,这将导致处理器在新任务的指令流中遇到x87 FPU、MMX、SSE或SSE2指令时引发#NM异常(上面列出的指令除外)。然后,可以使用#NM异常的错误处理程序清除TS标志(使用CLTS指令),并保存x87 FPU、XMM和MXCSR寄存器的上下文。如果任务从未遇到过x87 FPU / MMX / SSE / SSE2指令,则x87 FPU / MMX / SSE / SSE2 上下文t将永远不会被保存。

相关推荐
炸膛坦客几秒前
常见代码问题与解答:(二)因外部晶振频率改变导致 MCU 锁死的原因及处理方法
单片机·嵌入式硬件
酷可达拉斯14 分钟前
Linux操作系统-简单内核优化
linux·git·php
码上上班19 分钟前
Filebeat课程
linux
weixin_5160230744 分钟前
LAMMPS(intel)的安装
linux·服务器
代码AC不AC1 小时前
【Linux】Socket编程UDP
linux·udp·socket编程
Brilliantwxx1 小时前
【Linux】基础指令
linux·运维·服务器
ShiMetaPi1 小时前
ShiMetaPi Pico-G1:百元级黑光全彩AI ISP开发板
人工智能·嵌入式硬件·pico·isp
ZhemgLee1 小时前
在Linux上使用Claude Code 并使用本地VS Code SSH远程访问的完整指南
linux·运维·服务器·ssh
CHANG_THE_WORLD1 小时前
4.串行接受多个客户端
linux
Lzh编程小栈2 小时前
嵌入式深度精讲|STM32引脚全方位底层原理、配置逻辑、硬件规范、高频面试题
c语言·stm32·单片机·嵌入式硬件