Re: [edk2] [PATCH 1/5] MdeModulePkg/DxeIplPeim: expire the use of PcdSetNxForStack

2018-09-11 Thread Ni, Ruiyu
On 9/11/2018 1:16 PM, Jian J Wang wrote: +if ((PcdGet64 (PcdDxeNxMemoryProtectionPolicy) & BIT4) != 0 I suggest to use (1 << EfiBootServicesData) to replace BIT4. -- Thanks, Ray ___ edk2-devel mailing list edk2-devel@lists.01.org

[edk2] [PATCH 1/5] MdeModulePkg/DxeIplPeim: expire the use of PcdSetNxForStack

2018-09-10 Thread Jian J Wang
BZ#: https://bugzilla.tianocore.org/show_bug.cgi?id=1116 Since the stack memory is allocated as EfiBootServicesData, its NX protection can be covered by BIT4 of PcdDxeNxMemoryProtectionPolicy. To avoid confusing in setting related PCDs, PcdSetNxForStack will be expired. Instead, If BIT4 of