]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/DxeIpl: Introduce PCD PcdUse5LevelPageTable
authorNi, Ray <ray.ni@intel.com>
Thu, 1 Aug 2019 09:58:27 +0000 (17:58 +0800)
committerEric Dong <eric.dong@intel.com>
Fri, 9 Aug 2019 00:52:08 +0000 (08:52 +0800)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2008

The PCD indicates if 5-Level Paging will be enabled in long mode.
5-Level Paging will not be enabled when the PCD is TRUE but CPU
doesn't support 5-Level Paging.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: Eric Dong <eric.dong@intel.com>
MdeModulePkg/MdeModulePkg.dec
MdeModulePkg/MdeModulePkg.uni

index c4139753d3f39a09850f4b19f32afcb2337b7dd4..35935d7aa623d042156cc041342892986092d71c 100644 (file)
   # @Prompt The address mask when memory encryption is enabled.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0|UINT64|0x30001047\r
 \r
+  ## Indicates if 5-Level Paging will be enabled in long mode. 5-Level Paging will not be enabled\r
+  #  when the PCD is TRUE but CPU doesn't support 5-Level Paging.\r
+  #   TRUE  - 5-Level Paging will be enabled.<BR>\r
+  #   FALSE - 5-Level Paging will not be enabled.<BR>\r
+  # @Prompt Enable 5-Level Paging support in long mode.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdUse5LevelPageTable|FALSE|BOOLEAN|0x0001105F\r
+\r
   ## Capsule In Ram is to use memory to deliver the capsules that will be processed after system\r
   #  reset.<BR><BR>\r
   #  This PCD indicates if the Capsule In Ram is supported.<BR>\r
index 2bd1ad29f26d0df4d38588950665b79a9e4bf721..29d0a70ce0e0d9c767bf05d6b8b8e61b8f2bc259 100644 (file)
                                                                                    "It is used to set VPD region base address. So, it can't be DynamicExVpd PCD. Its value is"\r
                                                                                    "required to be accessed in PcdDxe driver entry point. So, its value must be set in PEI phase."\r
                                                                                    "It can't depend on EFI variable service, and can't be DynamicExHii PCD."\r
+\r
+#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdUse5LevelPageTable_PROMPT  #language en-US "Enable 5-Level Paging support in long mode"\r
+\r
+#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdUse5LevelPageTable_HELP  #language en-US "Indicates if 5-Level Paging will be enabled in long mode. 5-Level Paging will not be enabled"\r
+                                                                                    "when the PCD is TRUE but CPU doesn't support 5-Level Paging."\r
+                                                                                    " TRUE  - 5-Level Paging will be enabled."\r
+                                                                                    " FALSE - 5-Level Paging will not be enabled."\r