include vmm.inc
VMMCall _GetDescriptor, <Selector, VM, flags>
mov ecx, eax ; zero in eax and edx if error
or ecx, edx
jz error
mov [DescDWORD1], edx ; high doubleword of descriptor
mov [DescDWORD2], eax ; low doubleword of descriptor
Retrieves a copy of the descriptor associated with the given LDT or GDT selector. Uses EAX, ECX, EDX, and Flags.
This service ignores the high 16-bits of the Selector parameter; the 80386 CPU often sets these bits to random values when doubleword operations are performed on segment registers.
This service ignores the RPL bits of the selector.
_BuildDescriptorDWORDs, _SetDescriptor