# free pages for all of them. The page allocation for the type related to\r
# cleared bits keeps the same as ususal.\r
#\r
+ # This PCD is only valid if BIT0 and/or BIT2 are set in PcdHeapGuardPropertyMask.\r
+ #\r
# Below is bit mask for this PCD: (Order is same as UEFI spec)<BR>\r
# EfiReservedMemoryType 0x0000000000000001<BR>\r
# EfiLoaderCode 0x0000000000000002<BR>\r
# if there's enough free memory for all of them. The pool allocation for the\r
# type related to cleared bits keeps the same as ususal.\r
#\r
+ # This PCD is only valid if BIT1 and/or BIT3 are set in PcdHeapGuardPropertyMask.\r
+ #\r
# Below is bit mask for this PCD: (Order is same as UEFI spec)<BR>\r
# EfiReservedMemoryType 0x0000000000000001<BR>\r
# EfiLoaderCode 0x0000000000000002<BR>\r
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPoolType|0x0|UINT64|0x30001053\r
\r
## This mask is to control Heap Guard behavior.\r
- # Note that due to the limit of pool memory implementation and the alignment\r
- # requirement of UEFI spec, BIT7 is a try-best setting which cannot guarantee\r
- # that the returned pool is exactly adjacent to head guard page or tail guard\r
- # page.\r
+ #\r
+ # Note:\r
+ # a) Heap Guard is for debug purpose and should not be enabled in product\r
+ # BIOS.\r
+ # b) Due to the limit of pool memory implementation and the alignment\r
+ # requirement of UEFI spec, BIT7 is a try-best setting which cannot\r
+ # guarantee that the returned pool is exactly adjacent to head guard\r
+ # page or tail guard page.\r
+ # c) UEFI freed-memory guard and UEFI pool/page guard cannot be enabled\r
+ # at the same time.\r
+ #\r
# BIT0 - Enable UEFI page guard.<BR>\r
# BIT1 - Enable UEFI pool guard.<BR>\r
# BIT2 - Enable SMM page guard.<BR>\r
# BIT3 - Enable SMM pool guard.<BR>\r
+ # BIT4 - Enable UEFI freed-memory guard (Use-After-Free memory detection).<BR>\r
# BIT6 - Enable non-stop mode.<BR>\r
# BIT7 - The direction of Guard Page for Pool Guard.\r
# 0 - The returned pool is near the tail guard page.<BR>\r