]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/MdeModulePkg.dec
BaseTools: Check PCD DataType and the maxsize.
[mirror_edk2.git] / MdeModulePkg / MdeModulePkg.dec
index 856d67aceb219dfe30679dc20b59dfa4ee72a4d9..d134ec798a4965ae35fa8ffe88db350a3a4a989f 100644 (file)
   ## Include/Guid/PlatformHasAcpi.h\r
   gEdkiiPlatformHasAcpiGuid = { 0xf0966b41, 0xc23f, 0x41b9, { 0x96, 0x04, 0x0f, 0xf7, 0xe1, 0x11, 0x96, 0x5a } }\r
 \r
+  ## Include/Guid/EndofS3Resume.h\r
+  gEdkiiEndOfS3ResumeGuid = { 0x96f5296d, 0x05f7, 0x4f3c, {0x84, 0x67, 0xe4, 0x56, 0x89, 0x0e, 0x0c, 0xb5 } }\r
+\r
 [Ppis]\r
   ## Include/Ppi/AtaController.h\r
   gPeiAtaControllerPpiGuid       = { 0xa45e60d1, 0xc719, 0x44aa, { 0xb0, 0x7a, 0xaa, 0x77, 0x7f, 0x85, 0x90, 0x6d }}\r
   ## Include/Protocol/IoMmu.h\r
   gEdkiiIoMmuProtocolGuid = { 0x4e939de9, 0xd948, 0x4b0f, { 0x88, 0xed, 0xe6, 0xe1, 0xce, 0x51, 0x7c, 0x1e } }\r
 \r
-  ## Include/Protocol/SmmEndofS3Resume.h\r
-  gEdkiiSmmEndOfS3ResumeProtocolGuid = { 0x96f5296d, 0x05f7, 0x4f3c, {0x84, 0x67, 0xe4, 0x56, 0x89, 0x0e, 0x0c, 0xb5 } }\r
-\r
   ## Include/Protocol/SmmMemoryAttribute.h\r
   gEdkiiSmmMemoryAttributeProtocolGuid = { 0x69b792ea, 0x39ce, 0x402d, { 0xa2, 0xa6, 0xf7, 0x21, 0xde, 0x35, 0x1d, 0xfe } }\r
 \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
   #   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
   #   BIT7 - The direction of Guard Page for Pool Guard.\r
-  #          0 - The returned pool is adjacent to the bottom guard page.<BR>\r
-  #          1 - The returned pool is adjacent to the top guard page.<BR>\r
+  #          0 - The returned pool is near the tail guard page.<BR>\r
+  #          1 - The returned pool is near the head guard page.<BR>\r
   # @Prompt The Heap Guard feature mask\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPropertyMask|0x0|UINT8|0x30001054\r
 \r
+  ## Indicates if UEFI Stack Guard will be enabled.\r
+  #  If enabled, stack overflow in UEFI can be caught, preventing chaotic consequences.<BR><BR>\r
+  #   TRUE  - UEFI Stack Guard will be enabled.<BR>\r
+  #   FALSE - UEFI Stack Guard will be disabled.<BR>\r
+  # @Prompt Enable UEFI Stack Guard.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|FALSE|BOOLEAN|0x30001055\r
+\r
 [PcdsFixedAtBuild, PcdsPatchableInModule]\r
   ## Dynamic type PCD can be registered callback function for Pcd setting action.\r
   #  PcdMaxPeiPcdCallBackNumberPerPcdEntry indicates the maximum number of callback function\r