summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2025-01-27 17:43:06 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-01-27 22:59:55 +0000
commit18984b68fed23fbf3460fa58daddeace33c7c6f2 (patch)
tree53b8a63db1657b3e7894ec92f182551fcf85f4bd /OvmfPkg
parent6d2143f685087ac94d871a26af017248e57888df (diff)
downloadedk2-18984b68fed23fbf3460fa58daddeace33c7c6f2.tar.gz
OvmfPkg: make legacy direct kernel loader code nx clean
kernel pages are code not data. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Library/LoadLinuxLib/Linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/Library/LoadLinuxLib/Linux.c b/OvmfPkg/Library/LoadLinuxLib/Linux.c
index ce3d760380..0bc8e156d7 100644
--- a/OvmfPkg/Library/LoadLinuxLib/Linux.c
+++ b/OvmfPkg/Library/LoadLinuxLib/Linux.c
@@ -168,7 +168,7 @@ LoadLinuxAllocateKernelPages (
);
Status = gBS->AllocatePages (
AllocateAddress,
- EfiLoaderData,
+ EfiLoaderCode,
Pages,
&KernelAddress
);