Intel 64 and IA-32 Architectures Software Developers Manual Volume 2A, Instruction Set Reference, A-M

Vol. 2 3-589
INSTRUCTION SET REFERENCE, A-M
Operation
MONITOR sets up an address range for the monitor hardware using the content of
EAX as an effective address and puts the monitor hardware in armed state. Always
use memory of the write-back caching type. A store to the specified address range
will trigger the monitor hardware. The content of ECX and EDX are used to commu-
nicate other information to the monitor hardware.
Intel C/C++ Compiler Intrinsic Equivalent
MONITOR void _mm_monitor(void const *p, unsigned extensions,unsigned hints)
Exceptions
None
Protected Mode Exceptions
#GP(0) For an illegal memory operand effective address in the CS, DS,
ES, FS or GS segments.
#GP(0) For ECX has a value other than 0.
#SS(0) For an illegal address in the SS segment.
#PF(fault-code) For a page fault (TBD).
#UD If CPUID.01H:ECX.MONITOR[bit 3] = 0.
If executed at privilege level 1 through 3 when the instruction is
not available.
If LOCK, REP, REPNE/NZ and Operand Size override prefixes are
used.
Real Address Mode Exceptions
#GP If any part of the operand lies outside of the effective address
space from 0 to FFFFH.
#GP(0) For ECX has a value other than 0.
#UD If CPUID.01H:ECX.MONITOR[bit 3] = 0.
If LOCK, REP, REPNE/NZ and Operand Size override prefixes are
used.
Virtual 8086 Mode Exceptions
#GP If any part of the operand lies outside of the effective address
space from 0 to FFFFH.
#GP(0) For ECX has a value other than 0.