include vmm.inc VMMcall _PageGetAllocInfo, <flags> mov [Free], eax ; count of free pages mov [Lockable], edx ; count of lockable pages |
The _PageGetAllocInfo service returns the size (in pages) of the largest block of linear address space that can be allocated. It also returns the number of pages that can be allocated as locked or fixed memory.
flags
Specifies the operation flags. This parameter must be set to 0.
The EAX register contains a count of free pages available, and the EDX register contains a count of pages available for allocating as locked pages.
Virtual devices must not rely on being able to allocate all pages specified by this service. In general, virtual devices should allocate memory as needed, and not attempt to allocate all available memory.
Virtual devices must not rely on the count of free pages being greater than or equal to the count of pages available for locking.
EAX, EDX