英特尔的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.
更多推荐
发布评论