mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Added PcdMaxMemoryType.
This commit is contained in:
parent
25c0b47073
commit
c8b28293ec
|
@ -62,5 +62,8 @@
|
|||
gEfiDevicePathProtocolGuid ## SOMETIMES_CONSUMES
|
||||
gEfiUnicodeCollationProtocolGuid ## SOMETIMES_CONSUMES
|
||||
|
||||
[Pcd]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxMemoryType ## CONSUMES
|
||||
|
||||
[Depex]
|
||||
TRUE
|
||||
|
|
|
@ -36,7 +36,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||
#define GUARD_HEAP_TYPE_ALL \
|
||||
(GUARD_HEAP_TYPE_PAGE|GUARD_HEAP_TYPE_POOL|GUARD_HEAP_TYPE_FREED)
|
||||
|
||||
#define MAX_MEMORY_TYPE 100
|
||||
#define MAX_MEMORY_TYPE FixedPcdGet32 (PcdMaxMemoryType)
|
||||
|
||||
/**
|
||||
Called to initialize the pool.
|
||||
|
|
|
@ -38,3 +38,4 @@
|
|||
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPageType ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPoolType ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPropertyMask ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxMemoryType ## CONSUMES
|
||||
|
|
|
@ -1162,6 +1162,12 @@
|
|||
# @Prompt Enable User Space.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEnableUserSpace|FALSE|BOOLEAN|0x30001061
|
||||
|
||||
## Sets the size of mPoolHead array in MemoryPoolLib. It must be greater than EfiMaxMemoryType.
|
||||
# In DxeMain this array manages Pools of different memory types.
|
||||
# In DxeUserSpace this array manages Pools in different User address spaces.
|
||||
# @Prompt Max number of memory types (or User address spaces).
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxMemoryType|100|UINT32|0x30001062
|
||||
|
||||
[PcdsFixedAtBuild, PcdsPatchableInModule]
|
||||
## Dynamic type PCD can be registered callback function for Pcd setting action.
|
||||
# PcdMaxPeiPcdCallBackNumberPerPcdEntry indicates the maximum number of callback function
|
||||
|
|
Loading…
Reference in New Issue