Intel 253666-024US User Manual

Page 643

Advertising
background image

Vol. 2A 3-597

INSTRUCTION SET REFERENCE, A-M

MONITOR—Set Up Monitor Address

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)

Numeric Exceptions

None

Protected Mode Exceptions

#GP(0)

If a memory operand effective address is outside the CS, DS,

ES, FS, or GS segment limit.

If the DS, ES, FS, or GS register is used to access memory and it

contains a NULL segment selector.

If ECX ← 0.

#SS(0)

If a memory operand effective address is outside the SS

segment limit.

#PF(fault-code)

For a page fault.

#UD

If CPUID.01H:ECX.MONITOR[bit 3] = 0.
If current privilege level is not 0.

Real Address Mode Exceptions

#GP

If any part of the operand in the CS, DS, ES, FS, or GS segment

lies outside of the effective address space from 0 to FFFFH.

If ECX ← 0.

#SS

If any part of the operand in the SS segment lies outside of the

effective address space from 0 to FFFFH.

#UD

If CPUID.01H:ECX.MONITOR[bit 3] = 0.

Virtual 8086 Mode Exceptions

#UD

The MONITOR instruction is not recognized in virtual-8086 mode

(even if CPUID.01H:ECX.MONITOR[bit 3] = 1).

Compatibility Mode Exceptions

Same exceptions as in protected mode.

Advertising