【英特尔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将永远不会被保存。

相关推荐
lczllx5 小时前
从 TCP 90μs 到 SHM 28μs:我的 RPC 框架零拷贝优化历程
linux·后端
盐焗鹌鹑蛋5 小时前
【Linux】权限
linux
小此方6 小时前
Re:Linux系统篇(四十六)信号篇·四:一文串联操作系统底层:时钟中断、内核态切换、系统调用与 Linux 信号处理全解析
linux·驱动开发·信号处理
无人生还别怕7 小时前
如何制作一个linux标准iso镜像
linux·iso·opencloudos·openanolisos
Yana.nice15 小时前
Linux 只保留 30 天内日志(find命令删除日志文件)
linux·运维·chrome
千寻xun17 小时前
三、实战篇-NVME SSD控制之FPGA实现(一)
fpga开发·nvme ssd·nvme协议
DFT计算杂谈18 小时前
无 Root 权限在 Tesla K80 零门槛部署 DeepSeek 大模型
linux·服务器·网络·数据库·机器学习
sramdram19 小时前
MCU微控制器OA打印机方案
单片机·嵌入式硬件·mcu·mcu微控制器
Zhang~Ling19 小时前
从 fopen 到 struct file:从零开始拆解 Linux 文件 I/O
linux·运维·服务器
DeeplyMind20 小时前
Linux 深入 per-VMA lock:Linux 缺页路径如何摆脱 mmap_lock
linux·per-vma lock