]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/MdeModulePkg.dec
MdeModulePkg: Add new PCD to control the evacuate temporary memory feature (CVE-2019...
[mirror_edk2.git] / MdeModulePkg / MdeModulePkg.dec
index 73ff1774345a9346732c25b1be70e6519ce7eb3e..45874e9c8236a4489593db61056f9b11202ec838 100644 (file)
@@ -24,6 +24,8 @@
 [Includes]\r
   Include\r
 \r
+[Includes.Common.Private]\r
+  Library/BrotliCustomDecompressLib/brotli/c/include\r
 \r
 [LibraryClasses]\r
   ##  @libraryclass  Defines a set of methods to reset whole system.\r
   # @Prompt Enable PCI bridge IO alignment probe.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdPciBridgeIoAlignmentProbe|FALSE|BOOLEAN|0x0001004e\r
 \r
-  ## Indicates if StatusCode is reported via Serial port.<BR><BR>\r
-  #   TRUE  - Reports StatusCode via Serial port.<BR>\r
-  #   FALSE - Does not report StatusCode via Serial port.<BR>\r
-  # @Prompt Enable StatusCode via Serial port.\r
-  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE|BOOLEAN|0x00010022\r
-\r
-  ## Indicates if StatusCode is stored in memory.\r
-  #  The memory is boot time memory in PEI Phase and is runtime memory in DXE Phase.<BR><BR>\r
-  #   TRUE  - Stores StatusCode in memory.<BR>\r
-  #   FALSE - Does not store StatusCode in memory.<BR>\r
-  # @Prompt Enable StatusCode via memory.\r
-  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE|BOOLEAN|0x00010023\r
-\r
   ## Indicates if PEI phase StatusCode will be replayed in DXE phase.<BR><BR>\r
   #   TRUE  - Replays PEI phase StatusCode in DXE phased.<BR>\r
   #   FALSE - Does not replay PEI phase StatusCode in DXE phase.<BR>\r
   # @Prompt Shadow Peim and PeiCore on boot\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnBoot|TRUE|BOOLEAN|0x30001029\r
 \r
+  ## Enable the feature that evacuate temporary memory to permanent memory or not<BR><BR>\r
+  #  Set FALSE as default, if the developer need this feature to avoid this vulnerability, please\r
+  #  enable it to shadow all PEIMs no matter the behavior controled by PcdShadowPeimOnBoot or\r
+  #  PcdShadowPeimOnS3Boot<BR>\r
+  #  TRUE - Evacuate temporary memory, the actions include copy memory, convert PPI pointers and so on.<BR>\r
+  #  FALSE - Do nothing, for example, no copy memory, no convert PPI pointers and so on.<BR>\r
+  # @Prompt Evacuate temporary memory to permanent memory\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdMigrateTemporaryRamFirmwareVolumes|FALSE|BOOLEAN|0x3000102A\r
+\r
   ## The mask is used to control memory profile behavior.<BR><BR>\r
   #  BIT0 - Enable UEFI memory profile.<BR>\r
   #  BIT1 - Enable SMRAM profile.<BR>\r
   # @Prompt Console Output Row of Text Setup\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutRow|25|UINT32|0x4000000e\r
 \r
+[PcdsFixedAtBuild.AARCH64, PcdsPatchableInModule.AARCH64]\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20|UINT32|0x0001004c\r
+\r
 [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]\r
   ## UART clock frequency is for the baud rate configuration.\r
   # @Prompt Serial Port Clock Rate.\r
   # @Prompt Flag to request system reboot after processing capsule.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdSystemRebootAfterCapsuleProcessFlag|0x0001|UINT16|0x0000006d\r
 \r
-  ## Publish PropertiesTable or not.\r
-  #\r
-  # If this PCD is TRUE, DxeCore publishs PropertiesTable.\r
-  # DxeCore evaluates if all runtime drivers has 4K aligned PE sections. If all\r
-  # PE sections in runtime drivers are 4K aligned, DxeCore sets BIT0 in\r
-  # PropertiesTable. Or DxeCore clears BIT0 in PropertiesTable.\r
-  # If this PCD is FALSE, DxeCore does not publish PropertiesTable.\r
-  #\r
-  # If PropertiesTable has BIT0 set, DxeCore uses below policy in UEFI memory map:\r
-  #   1) Use EfiRuntimeServicesCode for runtime driver PE image code section and\r
-  #      use EfiRuntimeServicesData for runtime driver PE image header and other section.\r
-  #   2) Set EfiRuntimeServicesCode to be EFI_MEMORY_RO.\r
-  #   3) Set EfiRuntimeServicesData to be EFI_MEMORY_XP.\r
-  #   4) Set EfiMemoryMappedIO and EfiMemoryMappedIOPortSpace to be EFI_MEMORY_XP.\r
-  #\r
-  # NOTE: Platform need gurantee this PCD is set correctly. Platform should set\r
-  # this PCD to be TURE if and only if all runtime driver has seperated Code/Data\r
-  # section. If PE code/data sections are merged, the result is unpredictable.\r
-  #\r
-  # UEFI 2.6 specification does not recommend to use this BIT0 attribute.\r
-  #\r
-  # @Prompt Publish UEFI PropertiesTable.\r
-  gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE|BOOLEAN|0x0000006e\r
-\r
   ## Default OEM ID for ACPI table creation, its length must be 0x6 bytes to follow ACPI specification.\r
   # @Prompt Default OEM ID for ACPI table creation.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemId|"INTEL "|VOID*|0x30001034\r
   # @Prompt TCG Platform Firmware Profile revision.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdTcgPfpMeasurementRevision|0|UINT32|0x00010077\r
 \r
+  ## Indicates if StatusCode is reported via Serial port.<BR><BR>\r
+  #   TRUE  - Reports StatusCode via Serial port.<BR>\r
+  #   FALSE - Does not report StatusCode via Serial port.<BR>\r
+  # @Prompt Enable StatusCode via Serial port.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE|BOOLEAN|0x00010022\r
+\r
+  ## Indicates if StatusCode is stored in memory.\r
+  #  The memory is boot time memory in PEI Phase and is runtime memory in DXE Phase.<BR><BR>\r
+  #   TRUE  - Stores StatusCode in memory.<BR>\r
+  #   FALSE - Does not store StatusCode in memory.<BR>\r
+  # @Prompt Enable StatusCode via memory.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE|BOOLEAN|0x00010023\r
+\r
 [PcdsPatchableInModule]\r
   ## Specify memory size with page number for PEI code when\r
   #  Loading Module at Fixed Address feature is enabled.\r