MdeModulePkg: Added PcdMaxMemoryType.

This commit is contained in:
Mikhail Krichanov 2025-02-06 12:18:17 +03:00
parent 25c0b47073
commit c8b28293ec
4 changed files with 11 additions and 1 deletions

View File

@ -62,5 +62,8 @@
gEfiDevicePathProtocolGuid ## SOMETIMES_CONSUMES
gEfiUnicodeCollationProtocolGuid ## SOMETIMES_CONSUMES
[Pcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxMemoryType ## CONSUMES
[Depex]
TRUE

View File

@ -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.

View File

@ -38,3 +38,4 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPageType ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPoolType ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPropertyMask ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxMemoryType ## CONSUMES

View File

@ -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