]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/metafile: Add PCD PcdCpuStackGuard
authorJian J Wang <jian.j.wang@intel.com>
Thu, 12 Oct 2017 04:28:47 +0000 (12:28 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 8 Dec 2017 06:38:46 +0000 (14:38 +0800)
PcdCpuStackGuard is introduced to enable/disable Stack Guard feature.
Its value is FALSE by default. This feature is suggested to be enabled
only if the cpu driver and CpuExceptionHandlerLib have supported stack
switch for the processor used in platform. Otherwise the exception dump
message won't be printed out when there's a stack overflow happened.

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Suggested-by: Ayellet Wolman <ayellet.wolman@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jeff Fan <vanjeff_919@hotmail.com>
Reviewed-by: Jiewen.yao@intel.com
MdeModulePkg/MdeModulePkg.dec
MdeModulePkg/MdeModulePkg.uni

index 856d67aceb219dfe30679dc20b59dfa4ee72a4d9..b3831a21ad08740f4270501f7dd6533e48a21825 100644 (file)
   # @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
index 588905a9a1fa6943ad09dd5b15680f499b3bbba2..43dd5103be9bfcf6eeb797b55b18baa1b2855a6e 100644 (file)
                                                                                             "          0 - The returned pool is adjacent to the bottom guard page.<BR>\n"\r
                                                                                             "          1 - The returned pool is adjacent to the top guard page.<BR>"\r
 \r
+#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdCpuStackGuard_PROMPT  #language en-US "Enable UEFI Stack Guard"\r
+\r
+#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdCpuStackGuard_HELP    #language en-US "Indicates if UEFI Stack Guard will be enabled.\n"\r
+                                                                                    "  If enabled, stack overflow in UEFI can be caught, preventing chaotic consequences.<BR><BR>\n"\r
+                                                                                    "   TRUE  - UEFI Stack Guard will be enabled.<BR>\n"\r
+                                                                                    "   FALSE - UEFI Stack Guard will be disabled.<BR>"\r
+\r