TianoCore EDK2 master
Loading...
Searching...
No Matches
Page.c File Reference
#include "DxeMain.h"
#include "Imem.h"
#include "HeapGuard.h"
#include <Pi/PiDxeCis.h>

Go to the source code of this file.

Data Structures

struct  EFI_MEMORY_TYPE_STATISTICS
 

Macros

#define MAX_MAP_DEPTH   6
 

Functions

VOID CoreAcquireMemoryLock (VOID)
 
VOID CoreReleaseMemoryLock (VOID)
 
VOID RemoveMemoryMapEntry (IN OUT MEMORY_MAP *Entry)
 
VOID CoreAddRange (IN EFI_MEMORY_TYPE Type, IN EFI_PHYSICAL_ADDRESS Start, IN EFI_PHYSICAL_ADDRESS End, IN UINT64 Attribute)
 
MEMORY_MAP * AllocateMemoryMapEntry (VOID)
 
VOID CoreFreeMemoryMapStack (VOID)
 
BOOLEAN PromoteMemoryResource (VOID)
 
VOID CoreLoadingFixedAddressHook (VOID)
 
VOID CoreSetMemoryTypeInformationRange (IN EFI_PHYSICAL_ADDRESS Start, IN UINT64 Length)
 
VOID CoreAddMemoryDescriptor (IN EFI_MEMORY_TYPE Type, IN EFI_PHYSICAL_ADDRESS Start, IN UINT64 NumberOfPages, IN UINT64 Attribute)
 
EFI_STATUS CoreConvertPagesEx (IN UINT64 Start, IN UINT64 NumberOfPages, IN BOOLEAN ChangingType, IN EFI_MEMORY_TYPE NewType, IN BOOLEAN ChangingAttributes, IN UINT64 NewAttributes)
 
EFI_STATUS CoreConvertPages (IN UINT64 Start, IN UINT64 NumberOfPages, IN EFI_MEMORY_TYPE NewType)
 
VOID CoreUpdateMemoryAttributes (IN EFI_PHYSICAL_ADDRESS Start, IN UINT64 NumberOfPages, IN UINT64 NewAttributes)
 
UINT64 CoreFindFreePagesI (IN UINT64 MaxAddress, IN UINT64 MinAddress, IN UINT64 NumberOfPages, IN EFI_MEMORY_TYPE NewType, IN UINTN Alignment, IN BOOLEAN NeedGuard)
 
UINT64 FindFreePages (IN UINT64 MaxAddress, IN UINT64 NoPages, IN EFI_MEMORY_TYPE NewType, IN UINTN Alignment, IN BOOLEAN NeedGuard)
 
EFI_STATUS EFIAPI CoreInternalAllocatePages (IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN NumberOfPages, IN OUT EFI_PHYSICAL_ADDRESS *Memory, IN BOOLEAN NeedGuard)
 
EFI_STATUS EFIAPI CoreAllocatePages (IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN NumberOfPages, OUT EFI_PHYSICAL_ADDRESS *Memory)
 
EFI_STATUS EFIAPI CoreInternalFreePages (IN EFI_PHYSICAL_ADDRESS Memory, IN UINTN NumberOfPages, OUT EFI_MEMORY_TYPE *MemoryType OPTIONAL)
 
EFI_STATUS EFIAPI CoreFreePages (IN EFI_PHYSICAL_ADDRESS Memory, IN UINTN NumberOfPages)
 
EFI_MEMORY_DESCRIPTOR * MergeMemoryMapDescriptor (IN EFI_MEMORY_DESCRIPTOR *MemoryMap, IN EFI_MEMORY_DESCRIPTOR *MemoryMapDescriptor, IN UINTN DescriptorSize)
 
EFI_STATUS EFIAPI CoreGetMemoryMap (IN OUT UINTN *MemoryMapSize, IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap, OUT UINTN *MapKey, OUT UINTN *DescriptorSize, OUT UINT32 *DescriptorVersion)
 
VOID * CoreAllocatePoolPages (IN EFI_MEMORY_TYPE PoolType, IN UINTN NumberOfPages, IN UINTN Alignment, IN BOOLEAN NeedGuard)
 
VOID CoreFreePoolPages (IN EFI_PHYSICAL_ADDRESS Memory, IN UINTN NumberOfPages)
 
EFI_STATUS CoreTerminateMemoryMap (IN UINTN MapKey)
 

Variables

UINTN mMemoryMapKey = 0
 
UINTN mMapDepth = 0
 
MEMORY_MAP mMapStack [MAX_MAP_DEPTH]
 
UINTN mFreeMapStack = 0
 
LIST_ENTRY mFreeMemoryMapEntryList = INITIALIZE_LIST_HEAD_VARIABLE (mFreeMemoryMapEntryList)
 
BOOLEAN mMemoryTypeInformationInitialized = FALSE
 
EFI_MEMORY_TYPE_STATISTICS mMemoryTypeStatistics [EfiMaxMemoryType+1]
 
EFI_PHYSICAL_ADDRESS mDefaultMaximumAddress = MAX_ALLOC_ADDRESS
 
EFI_PHYSICAL_ADDRESS mDefaultBaseAddress = MAX_ALLOC_ADDRESS
 
EFI_MEMORY_TYPE_INFORMATION gMemoryTypeInformation [EfiMaxMemoryType+1]
 
GLOBAL_REMOVE_IF_UNREFERENCED BOOLEAN gLoadFixedAddressCodeMemoryReady = FALSE
 

Detailed Description

UEFI Memory page management functions.

Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Page.c.

Macro Definition Documentation

◆ MAX_MAP_DEPTH

#define MAX_MAP_DEPTH   6

Definition at line 32 of file Page.c.

Function Documentation

◆ AllocateMemoryMapEntry()

MEMORY_MAP * AllocateMemoryMapEntry ( VOID  )

Internal function. Deque a descriptor entry from the mFreeMemoryMapEntryList. If the list is emtry, then allocate a new page to refuel the list. Please Note this algorithm to allocate the memory map descriptor has a property that the memory allocated for memory entries always grows, and will never really be freed For example, if the current boot uses 2000 memory map entries at the maximum point, but ends up with only 50 at the time the OS is booted, then the memory associated with the 1950 memory map entries is still allocated from EfiBootServicesMemory.

Returns
The Memory map descriptor dequed from the mFreeMemoryMapEntryList

Definition at line 268 of file Page.c.

◆ CoreAcquireMemoryLock()

VOID CoreAcquireMemoryLock ( VOID  )

Enter critical section by gaining lock on gMemoryLock.

Definition at line 103 of file Page.c.

◆ CoreAddMemoryDescriptor()

VOID CoreAddMemoryDescriptor ( IN EFI_MEMORY_TYPE  Type,
IN EFI_PHYSICAL_ADDRESS  Start,
IN UINT64  NumberOfPages,
IN UINT64  Attribute 
)

Called to initialize the memory map and add descriptors to the current descriptor list. The first descriptor that is added must be general usable memory as the addition allocates heap.

Parameters
TypeThe type of memory to add
StartThe starting address in the memory range Must be page aligned
NumberOfPagesThe number of pages in the range
AttributeAttributes of the memory to add
Returns
None. The range is added to the memory map

Definition at line 700 of file Page.c.

◆ CoreAddRange()

VOID CoreAddRange ( IN EFI_MEMORY_TYPE  Type,
IN EFI_PHYSICAL_ADDRESS  Start,
IN EFI_PHYSICAL_ADDRESS  End,
IN UINT64  Attribute 
)

Internal function. Adds a ranges to the memory map. The range must not already exist in the map.

Parameters
TypeThe type of memory range to add
StartThe starting address in the memory range Must be paged aligned
EndThe last address in the range Must be the last byte of a page
AttributeThe attributes of the memory range to add

Definition at line 157 of file Page.c.

◆ CoreAllocatePages()

EFI_STATUS EFIAPI CoreAllocatePages ( IN EFI_ALLOCATE_TYPE  Type,
IN EFI_MEMORY_TYPE  MemoryType,
IN UINTN  NumberOfPages,
OUT EFI_PHYSICAL_ADDRESS *  Memory 
)

Allocates pages from the memory map.

Parameters
TypeThe type of allocation to perform
MemoryTypeThe type of memory to turn the allocated pages into
NumberOfPagesThe number of pages to allocate
MemoryA pointer to receive the base allocated memory address
Returns
Status. On success, Memory is filled in with the base address allocated
Return values
EFI_INVALID_PARAMETERParameters violate checking rules defined in spec.
EFI_NOT_FOUNDCould not allocate pages match the requirement.
EFI_OUT_OF_RESOURCESNo enough pages to allocate.
EFI_SUCCESSPages successfully allocated.

Definition at line 1663 of file Page.c.

◆ CoreAllocatePoolPages()

VOID * CoreAllocatePoolPages ( IN EFI_MEMORY_TYPE  PoolType,
IN UINTN  NumberOfPages,
IN UINTN  Alignment,
IN BOOLEAN  NeedGuard 
)

Internal function. Used by the pool functions to allocate pages to back pool allocation requests.

Parameters
PoolTypeThe type of memory for the new pool pages
NumberOfPagesNo of pages to allocate
AlignmentBits to align.
NeedGuardFlag to indicate Guard page is needed or not
Returns
The allocated memory, or NULL

Definition at line 2527 of file Page.c.

◆ CoreConvertPages()

EFI_STATUS CoreConvertPages ( IN UINT64  Start,
IN UINT64  NumberOfPages,
IN EFI_MEMORY_TYPE  NewType 
)

Internal function. Converts a memory range to the specified type. The range must exist in the memory map.

Parameters
StartThe first address of the range Must be page aligned
NumberOfPagesThe number of pages to convert
NewTypeThe new type for the memory range
Return values
EFI_INVALID_PARAMETERInvalid parameter
EFI_NOT_FOUNDCould not find a descriptor cover the specified range or convertion not allowed.
EFI_SUCCESSSuccessfully converts the memory range to the specified type.

Definition at line 1146 of file Page.c.

◆ CoreConvertPagesEx()

EFI_STATUS CoreConvertPagesEx ( IN UINT64  Start,
IN UINT64  NumberOfPages,
IN BOOLEAN  ChangingType,
IN EFI_MEMORY_TYPE  NewType,
IN BOOLEAN  ChangingAttributes,
IN UINT64  NewAttributes 
)

Internal function. Converts a memory range to the specified type or attributes. The range must exist in the memory map. Either ChangingType or ChangingAttributes must be set, but not both.

Parameters
StartThe first address of the range Must be page aligned
NumberOfPagesThe number of pages to convert
ChangingTypeBoolean indicating that type value should be changed
NewTypeThe new type for the memory range
ChangingAttributesBoolean indicating that attributes value should be changed
NewAttributesThe new attributes for the memory range
Return values
EFI_INVALID_PARAMETERInvalid parameter
EFI_NOT_FOUNDCould not find a descriptor cover the specified range or convertion not allowed.
EFI_SUCCESSSuccessfully converts the memory range to the specified type.

Definition at line 895 of file Page.c.

◆ CoreFindFreePagesI()

UINT64 CoreFindFreePagesI ( IN UINT64  MaxAddress,
IN UINT64  MinAddress,
IN UINT64  NumberOfPages,
IN EFI_MEMORY_TYPE  NewType,
IN UINTN  Alignment,
IN BOOLEAN  NeedGuard 
)

Internal function. Finds a consecutive free page range below the requested address.

Parameters
MaxAddressThe address that the range must be below
MinAddressThe address that the range must be above
NumberOfPagesNumber of pages needed
NewTypeThe type of memory the range is going to be turned into
AlignmentBits to align with
NeedGuardFlag to indicate Guard page is needed or not
Returns
The base address of the range, or 0 if the range was not found

Definition at line 1197 of file Page.c.

◆ CoreFreeMemoryMapStack()

VOID CoreFreeMemoryMapStack ( VOID  )

Internal function. Moves any memory descriptors that are on the temporary descriptor stack to heap.

Definition at line 314 of file Page.c.

◆ CoreFreePages()

EFI_STATUS EFIAPI CoreFreePages ( IN EFI_PHYSICAL_ADDRESS  Memory,
IN UINTN  NumberOfPages 
)

Frees previous allocated pages.

Parameters
MemoryBase address of memory being freed
NumberOfPagesThe number of pages to free
Return values
EFI_NOT_FOUNDCould not find the entry that covers the range
EFI_INVALID_PARAMETERAddress not aligned
Returns
EFI_SUCCESS -Pages successfully freed.

Definition at line 1808 of file Page.c.

◆ CoreFreePoolPages()

VOID CoreFreePoolPages ( IN EFI_PHYSICAL_ADDRESS  Memory,
IN UINTN  NumberOfPages 
)

Internal function. Frees pool pages allocated via AllocatePoolPages ()

Parameters
MemoryThe base address to free
NumberOfPagesThe number of pages to free

Definition at line 2571 of file Page.c.

◆ CoreGetMemoryMap()

EFI_STATUS EFIAPI CoreGetMemoryMap ( IN OUT UINTN *  MemoryMapSize,
IN OUT EFI_MEMORY_DESCRIPTOR *  MemoryMap,
OUT UINTN *  MapKey,
OUT UINTN *  DescriptorSize,
OUT UINT32 *  DescriptorVersion 
)

This function returns a copy of the current memory map. The map is an array of memory descriptors, each of which describes a contiguous block of memory.

Parameters
MemoryMapSizeA pointer to the size, in bytes, of the MemoryMap buffer. On input, this is the size of the buffer allocated by the caller. On output, it is the size of the buffer returned by the firmware if the buffer was large enough, or the size of the buffer needed to contain the map if the buffer was too small.
MemoryMapA pointer to the buffer in which firmware places the current memory map.
MapKeyA pointer to the location in which firmware returns the key for the current memory map.
DescriptorSizeA pointer to the location in which firmware returns the size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
DescriptorVersionA pointer to the location in which firmware returns the version number associated with the EFI_MEMORY_DESCRIPTOR.
Return values
EFI_SUCCESSThe memory map was returned in the MemoryMap buffer.
EFI_BUFFER_TOO_SMALLThe MemoryMap buffer was too small. The current buffer size needed to hold the memory map is returned in MemoryMapSize.
EFI_INVALID_PARAMETEROne of the parameters has an invalid value.

Definition at line 2020 of file Page.c.

◆ CoreInternalAllocatePages()

EFI_STATUS EFIAPI CoreInternalAllocatePages ( IN EFI_ALLOCATE_TYPE  Type,
IN EFI_MEMORY_TYPE  MemoryType,
IN UINTN  NumberOfPages,
IN OUT EFI_PHYSICAL_ADDRESS *  Memory,
IN BOOLEAN  NeedGuard 
)

Allocates pages from the memory map.

Parameters
TypeThe type of allocation to perform
MemoryTypeThe type of memory to turn the allocated pages into
NumberOfPagesThe number of pages to allocate
MemoryA pointer to receive the base allocated memory address
NeedGuardFlag to indicate Guard page is needed or not
Returns
Status. On success, Memory is filled in with the base address allocated
Return values
EFI_INVALID_PARAMETERParameters violate checking rules defined in spec.
EFI_NOT_FOUNDCould not allocate pages match the requirement.
EFI_OUT_OF_RESOURCESNo enough pages to allocate.
EFI_SUCCESSPages successfully allocated.

Definition at line 1447 of file Page.c.

◆ CoreInternalFreePages()

EFI_STATUS EFIAPI CoreInternalFreePages ( IN EFI_PHYSICAL_ADDRESS  Memory,
IN UINTN  NumberOfPages,
OUT EFI_MEMORY_TYPE *MemoryType  OPTIONAL 
)

Frees previous allocated pages.

Parameters
MemoryBase address of memory being freed
NumberOfPagesThe number of pages to free
MemoryTypePointer to memory type
Return values
EFI_NOT_FOUNDCould not find the entry that covers the range
EFI_INVALID_PARAMETERAddress not aligned
Returns
EFI_SUCCESS -Pages successfully freed.

Definition at line 1716 of file Page.c.

◆ CoreLoadingFixedAddressHook()

VOID CoreLoadingFixedAddressHook ( VOID  )

This function try to allocate Runtime code & Boot time code memory range. If LMFA enabled, 2 patchable PCD PcdLoadFixAddressRuntimeCodePageNumber & PcdLoadFixAddressBootTimeCodePageNumber which are set by tools will record the size of boot time and runtime code.

Definition at line 479 of file Page.c.

◆ CoreReleaseMemoryLock()

VOID CoreReleaseMemoryLock ( VOID  )

Exit critical section by releasing lock on gMemoryLock.

Definition at line 115 of file Page.c.

◆ CoreSetMemoryTypeInformationRange()

VOID CoreSetMemoryTypeInformationRange ( IN EFI_PHYSICAL_ADDRESS  Start,
IN UINT64  Length 
)

Sets the preferred memory range to use for the Memory Type Information bins. This service must be called before fist call to CoreAddMemoryDescriptor().

If the location of the Memory Type Information bins has already been established or the size of the range provides is smaller than all the Memory Type Information bins, then the range provides is not used.

Parameters
StartThe start address of the Memory Type Information range.
LengthThe size, in bytes, of the Memory Type Information range.

Definition at line 552 of file Page.c.

◆ CoreTerminateMemoryMap()

EFI_STATUS CoreTerminateMemoryMap ( IN UINTN  MapKey)

Make sure the memory map is following all the construction rules, it is the last time to check memory map error before exit boot services.

Parameters
MapKeyMemory map key
Return values
EFI_INVALID_PARAMETERMemory map not consistent with construction rules.
EFI_SUCCESSValid memory map.

Definition at line 2591 of file Page.c.

◆ CoreUpdateMemoryAttributes()

VOID CoreUpdateMemoryAttributes ( IN EFI_PHYSICAL_ADDRESS  Start,
IN UINT64  NumberOfPages,
IN UINT64  NewAttributes 
)

Internal function. Converts a memory range to use new attributes.

Parameters
StartThe first address of the range Must be page aligned
NumberOfPagesThe number of pages to convert
NewAttributesThe new attributes value for the range.

Definition at line 1165 of file Page.c.

◆ FindFreePages()

UINT64 FindFreePages ( IN UINT64  MaxAddress,
IN UINT64  NoPages,
IN EFI_MEMORY_TYPE  NewType,
IN UINTN  Alignment,
IN BOOLEAN  NeedGuard 
)

Internal function. Finds a consecutive free page range below the requested address

Parameters
MaxAddressThe address that the range must be below
NoPagesNumber of pages needed
NewTypeThe type of memory the range is going to be turned into
AlignmentBits to align with
NeedGuardFlag to indicate Guard page is needed or not
Returns
The base address of the range, or 0 if the range was not found.

Definition at line 1347 of file Page.c.

◆ MergeMemoryMapDescriptor()

EFI_MEMORY_DESCRIPTOR * MergeMemoryMapDescriptor ( IN EFI_MEMORY_DESCRIPTOR *  MemoryMap,
IN EFI_MEMORY_DESCRIPTOR *  MemoryMapDescriptor,
IN UINTN  DescriptorSize 
)

This function checks to see if the last memory map descriptor in a memory map can be merged with any of the other memory map descriptors in a memorymap. Memory descriptors may be merged if they are adjacent and have the same type and attributes.

Parameters
MemoryMapA pointer to the start of the memory map.
MemoryMapDescriptorA pointer to the last descriptor in MemoryMap.
DescriptorSizeThe size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
Returns
A pointer to the next available descriptor in MemoryMap

Definition at line 1888 of file Page.c.

◆ PromoteMemoryResource()

BOOLEAN PromoteMemoryResource ( VOID  )

Find untested but initialized memory regions in GCD map and convert them to be DXE allocatable.

Definition at line 392 of file Page.c.

◆ RemoveMemoryMapEntry()

VOID RemoveMemoryMapEntry ( IN OUT MEMORY_MAP *  Entry)

Internal function. Removes a descriptor entry.

Parameters
EntryThe entry to remove

Definition at line 129 of file Page.c.

Variable Documentation

◆ gLoadFixedAddressCodeMemoryReady

GLOBAL_REMOVE_IF_UNREFERENCED BOOLEAN gLoadFixedAddressCodeMemoryReady = FALSE

Definition at line 96 of file Page.c.

◆ gMemoryTypeInformation

EFI_MEMORY_TYPE_INFORMATION gMemoryTypeInformation[EfiMaxMemoryType+1]
Initial value:
= {
{ EfiLoaderCode, 0 },
{ EfiLoaderData, 0 },
{ EfiPalCode, 0 },
{ EfiMaxMemoryType, 0 }
}
@ EfiGcdMemoryTypeUnaccepted
Definition: PiDxeCis.h:63
@ EfiUnusableMemory
@ EfiBootServicesData
@ EfiPersistentMemory
@ EfiReservedMemoryType
@ EfiBootServicesCode
@ EfiConventionalMemory
@ EfiLoaderData
@ EfiACPIMemoryNVS
@ EfiMemoryMappedIOPortSpace
@ EfiACPIReclaimMemory
@ EfiLoaderCode
@ EfiMemoryMappedIO
@ EfiPalCode
@ EfiRuntimeServicesCode
@ EfiRuntimeServicesData

Definition at line 72 of file Page.c.

◆ mDefaultBaseAddress

EFI_PHYSICAL_ADDRESS mDefaultBaseAddress = MAX_ALLOC_ADDRESS

Definition at line 70 of file Page.c.

◆ mDefaultMaximumAddress

EFI_PHYSICAL_ADDRESS mDefaultMaximumAddress = MAX_ALLOC_ADDRESS

Definition at line 69 of file Page.c.

◆ mFreeMapStack

UINTN mFreeMapStack = 0

Definition at line 42 of file Page.c.

◆ mFreeMemoryMapEntryList

LIST_ENTRY mFreeMemoryMapEntryList = INITIALIZE_LIST_HEAD_VARIABLE (mFreeMemoryMapEntryList)

This list maintain the free memory map list

Definition at line 46 of file Page.c.

◆ mMapDepth

UINTN mMapDepth = 0

mMapDepth - depth of new descriptor stack

Definition at line 37 of file Page.c.

◆ mMapStack

MEMORY_MAP mMapStack[MAX_MAP_DEPTH]

mMapStack - space to use as temp storage to build new map descriptors

Definition at line 41 of file Page.c.

◆ mMemoryMapKey

UINTN mMemoryMapKey = 0

Definition at line 30 of file Page.c.

◆ mMemoryTypeInformationInitialized

BOOLEAN mMemoryTypeInformationInitialized = FALSE

Definition at line 47 of file Page.c.

◆ mMemoryTypeStatistics

EFI_MEMORY_TYPE_STATISTICS mMemoryTypeStatistics[EfiMaxMemoryType+1]
Initial value:
= {
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, TRUE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, TRUE, TRUE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, TRUE, TRUE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, TRUE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, TRUE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, TRUE, TRUE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, TRUE, FALSE },
{ 0, MAX_ALLOC_ADDRESS, 0, 0, EfiMaxMemoryType, FALSE, FALSE }
}
#define MAX_ALLOC_ADDRESS
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307

Definition at line 49 of file Page.c.