include vmm.inc
VMMCall _BuildDescriptorDWORDs, <DESCBase, DESCLimit, DESCType, DESCSize, flags>
mov [DescDWORD1], edx ; high doubleword of descriptor
mov [DescDWORD2], eax ; low doubleword of descriptor
Builds the descriptor parameter used in calls to the _Allocate_GDT_Selector and _Allocate_LDT_Selector services. Uses EAX, ECX, EDX, and Flags.
Value | Meaning |
---|---|
BDDExplicitDPL | Uses the DPL bits in the DESCType parameters. If this value is not given, the service sets the DPL bits to be equal to the RPL bits for protected-mode applications. |
All other values are reserved.
Virtual devices must not rely on the privilege level at which protected-mode applications run. When creating selectors for protected-mode applications, a virtual device should not specify the BDDExplicitDPL value. This provides a convenient way to build descriptors without knowing the protection level for protected-mode applications.
_Allocate_GDT_Selector, _Allocate_LDT_Selector