MdeModulePkg[all]  0.98
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack

Indicates if to set NX for stack.


For the DxeIpl and the DxeCore are both X64, set NX for stack feature also require PcdDxeIplBuildPageTables be TRUE.

For the DxeIpl and the DxeCore are both IA32 (PcdDxeIplSwitchToLongMode is FALSE), set NX for stack feature also require
IA32 PAE is supported and Execute Disable Bit is available.



TRUE - Set NX for stack.

FALSE - Do nothing for stack.



Note: If this PCD is set to FALSE, NX could be still applied to stack due to PcdDxeNxMemoryProtectionPolicy enabled for
EfiBootServicesData.



Set NX for stack.

PCD Information

NameToken SpaceToken numberData TypeDefault Value
PcdSetNxForStackgEfiMdeModulePkgTokenSpaceGuid0x0001006fBOOLEANFALSE