diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2025-01-27 17:43:06 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-01-27 22:59:55 +0000 |
commit | 18984b68fed23fbf3460fa58daddeace33c7c6f2 (patch) | |
tree | 53b8a63db1657b3e7894ec92f182551fcf85f4bd | |
parent | 6d2143f685087ac94d871a26af017248e57888df (diff) | |
download | edk2-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>
-rw-r--r-- | OvmfPkg/Library/LoadLinuxLib/Linux.c | 2 |
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
);
|