]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/MdeModulePkg.dec
MdeModulePkg/dec: Add PcdSmiHandlerProfilePropertyMask.
[mirror_edk2.git] / MdeModulePkg / MdeModulePkg.dec
index 273cd7e1716f2b8c54489fd5bccbdd13720309c0..426634fbbd4dadc41f2c3499acb4473bebc3668f 100644 (file)
   ## Include/Guid/PiSmmMemoryAttributesTable.h\r
   gEdkiiPiSmmMemoryAttributesTableGuid = { 0x6b9fd3f7, 0x16df, 0x45e8, {0xbd, 0x39, 0xb9, 0x4a, 0x66, 0x54, 0x1a, 0x5d}}\r
 \r
+  ## Include/Guid/SmiHandlerProfile.h\r
+  gSmiHandlerProfileGuid = {0x49174342, 0x7108, 0x409b, {0x8b, 0xbe, 0x65, 0xfd, 0xa8, 0x53, 0x89, 0xf5}}\r
+\r
   ## Include/Guid/NonDiscoverableDevice.h\r
   gEdkiiNonDiscoverableAhciDeviceGuid = { 0xC7D35798, 0xE4D2, 0x4A93, {0xB1, 0x45, 0x54, 0x88, 0x9F, 0x02, 0x58, 0x4B } }\r
   gEdkiiNonDiscoverableAmbaDeviceGuid = { 0x94440339, 0xCC93, 0x4506, {0xB4, 0xC6, 0xEE, 0x8D, 0x0F, 0x4C, 0xA1, 0x91 } }\r
   #  If developer need implement such functionality, they should use BasePeCoffLib.\r
   gEfiLoadPeImageProtocolGuid    = { 0x5CB5C776, 0x60D5, 0x45EE, { 0x88, 0x3C, 0x45, 0x27, 0x08, 0xCD, 0x74, 0x3F }}\r
 \r
-  ## Print protocol defines basic print functions to print the format unicode and ascii string.\r
+  ## Print protocols define basic print functions to print the format unicode and ascii string.\r
   # Include/Protocol/Print2.h\r
   gEfiPrint2ProtocolGuid          = { 0xf05976ef, 0x83f1, 0x4f3d, { 0x86, 0x19, 0xf7, 0x59, 0x5d, 0x41, 0xe5, 0x38 } }\r
+  gEfiPrint2SProtocolGuid         = { 0xcc252d2, 0xc106, 0x4661, { 0xb5, 0xbd, 0x31, 0x47, 0xa4, 0xf8, 0x1f, 0x92 } }\r
 \r
   ## This protocol defines the generic memory test interfaces in Dxe phase.\r
   # Include/Protocol/GenericMemoryTest.h\r
   # @Expression  0x80000002 | (gEfiMdeModulePkgTokenSpaceGuid.PcdMemoryProfilePropertyMask & 0x7C) == 0\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdMemoryProfilePropertyMask|0x0|UINT8|0x30001041\r
 \r
+  ## The mask is used to control SmiHandlerProfile behavior.<BR><BR>\r
+  #  BIT0 - Enable SmiHandlerProfile.<BR>\r
+  # @Prompt SmiHandlerProfile Property.\r
+  # @Expression  0x80000002 | (gEfiMdeModulePkgTokenSpaceGuid.PcdSmiHandlerProfilePropertyMask & 0xFE) == 0\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdSmiHandlerProfilePropertyMask|0|UINT8|0x00000108\r
+\r
   ## This flag is to control which memory types of alloc info will be recorded by DxeCore & SmmCore.<BR><BR>\r
   # For SmmCore, only EfiRuntimeServicesCode and EfiRuntimeServicesData are valid.<BR>\r
   #\r
   # @Prompt Memory profile driver path.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdMemoryProfileDriverPath|{0x0}|VOID*|0x00001043\r
 \r
+  ## Set image protection policy. The policy is bitwise.\r
+  #  If a bit is set, the image will be protected by DxeCore if it is aligned.\r
+  #   The code section becomes read-only, and the data section becomes non-executable.\r
+  #  If a bit is clear, the image will not be protected.<BR><BR>\r
+  #    BIT0       - Image from unknown device. <BR>\r
+  #    BIT1       - Image from firmware volume.<BR>\r
+  # @Prompt Set image protection policy.\r
+  # @ValidRange 0x80000002 | 0x00000000 - 0x0000001F\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000002|UINT32|0x00001047\r
+\r
   ## PCI Serial Device Info. It is an array of Device, Function, and Power Management\r
   #  information that describes the path that contains zero or more PCI to PCI briges\r
   #  followed by a PCI serial device.  Each array entry is 4-bytes in length.  The\r