]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c
ArmPkg/UncachedMemoryAllocationLib: map uncached allocations non-executable
[mirror_edk2.git] / ArmPkg / Library / UncachedMemoryAllocationLib / UncachedMemoryAllocationLib.c
index 0d8abad2343379d24533ee6552ed1705fc3cba0e..b4fbfbcb362bf4656e9e931c7453f12cf2d60cca 100644 (file)
@@ -154,7 +154,8 @@ AllocatePagesFromList (
     return Status;\r
   }\r
 \r
-  Status = gDS->SetMemorySpaceAttributes (Memory, EFI_PAGES_TO_SIZE (Pages), EFI_MEMORY_WC);\r
+  Status = gDS->SetMemorySpaceAttributes (Memory, EFI_PAGES_TO_SIZE (Pages),\r
+                  EFI_MEMORY_WC | EFI_MEMORY_XP);\r
   if (EFI_ERROR (Status)) {\r
     gBS->FreePages (Memory, Pages);\r
     return Status;\r