mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/metafile: Add PCD PcdCpuStackGuard
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
This commit is contained in:
parent
621d1f45ad
commit
448d014b73
|
@ -949,6 +949,13 @@
|
|||
# @Prompt The Heap Guard feature mask
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPropertyMask|0x0|UINT8|0x30001054
|
||||
|
||||
## Indicates if UEFI Stack Guard will be enabled.
|
||||
# If enabled, stack overflow in UEFI can be caught, preventing chaotic consequences.<BR><BR>
|
||||
# TRUE - UEFI Stack Guard will be enabled.<BR>
|
||||
# FALSE - UEFI Stack Guard will be disabled.<BR>
|
||||
# @Prompt Enable UEFI Stack Guard.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|FALSE|BOOLEAN|0x30001055
|
||||
|
||||
[PcdsFixedAtBuild, PcdsPatchableInModule]
|
||||
## Dynamic type PCD can be registered callback function for Pcd setting action.
|
||||
# PcdMaxPeiPcdCallBackNumberPerPcdEntry indicates the maximum number of callback function
|
||||
|
|
|
@ -1204,3 +1204,10 @@
|
|||
" 0 - The returned pool is adjacent to the bottom guard page.<BR>\n"
|
||||
" 1 - The returned pool is adjacent to the top guard page.<BR>"
|
||||
|
||||
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdCpuStackGuard_PROMPT #language en-US "Enable UEFI Stack Guard"
|
||||
|
||||
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdCpuStackGuard_HELP #language en-US "Indicates if UEFI Stack Guard will be enabled.\n"
|
||||
" If enabled, stack overflow in UEFI can be caught, preventing chaotic consequences.<BR><BR>\n"
|
||||
" TRUE - UEFI Stack Guard will be enabled.<BR>\n"
|
||||
" FALSE - UEFI Stack Guard will be disabled.<BR>"
|
||||
|
||||
|
|
Loading…
Reference in New Issue