使用CPUID指令确定x86 MONITOR指令地址范围(Determining x86 MONITOR instruction address range using CPUID instructi

编程入门 行业动态 更新时间:2024-10-10 19:25:38
使用CPUID指令确定x86 MONITOR指令地址范围(Determining x86 MONITOR instruction address range using CPUID instruction)

英特尔的MONITOR文档说:

MONITOR指令臂使用EAX中指定的地址来监视硬件(监视硬件检查存储操作的地址范围可以通过使用CPUID来确定)。 存储到指定地址范围内的地址会触发监视硬件。 MWAIT使用监视器硬件的状态。

因此,有没有人确切地知道应该向CPUID提供什么样的EAX值以获得“监视硬件检查存储操作的地址范围可以通过使用CPUID来确定”。

或者MONITOR地址范围只是缓存行的大小?

Intel's documentation of MONITOR says:

The MONITOR instruction arms address monitoring hardware using an address specified in EAX (the address range that the monitoring hardware checks for store operations can be determined by using CPUID). A store to an address within the specified address range triggers the monitoring hardware. The state of monitor hardware is used by MWAIT.

So does anyone know exactly what value of EAX should i supply to CPUID to get "the address range that the monitoring hardware checks for store operations can be determined by using CPUID".

Or is the MONITOR address range just size of a cache line?

最满意答案

我自己找到了答案。 本文档包含它:www.intel.com/Assets/PDF/appnote/241618.pdf

MONITOR / MWAIT参数(功能05h),即EAX应为5。

I have found answer myself. This documentation contains it: www.intel.com/Assets/PDF/appnote/241618.pdf

MONITOR / MWAIT Parameters (Function 05h), i.e. EAX should be 5.

更多推荐

本文发布于:2023-07-31 09:31:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1342477.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:指令   地址   MONITOR   CPUID   instruction

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!