ArmVirtPkg: Correct PcdDxeNxMemoryProtectionPolicy comment

Since commit 2997ae387397 ("ArmVirtPkg: make EFI_LOADER_DATA
non-executable") the comment for PcdDxeNxMemoryProtectionPolicy is
incorrect.

* Remove the incorrect part of the description.
* Describe overriding NX protection by passing a pcd parameter on the
  build command line.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
Heinrich Schuchardt 2024-09-15 11:07:55 +02:00 committed by mergify[bot]
parent 39462fcd99
commit 2936b7d162

View File

@ -381,8 +381,10 @@
#
# Enable NX memory protection for all non-code regions, including OEM and OS
# reserved ones, with the exception of LoaderData regions, of which OS loaders
# (i.e., GRUB) may assume that its contents are executable.
# reserved ones.
# By passing --pcd PcdDxeNxMemoryProtectionPolicy=0xC000000000007FD1 on the
# build command line you can allow code execution in EfiLoaderData. This is
# required when using some outdated GRUB versions.
#
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5