Determining x86 MONITOR instruction address range using CPUID instruction

1.3k views Asked by At

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?

1

There are 1 answers

2
zviadm On BEST ANSWER

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.