]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c
ArmPkg/CpuDxe: Fixed attribute setting in GetNextEntryAttribute()
[mirror_edk2.git] / ArmPkg / Drivers / CpuDxe / AArch64 / Mmu.c
index 72f9b3cc63f27d5066cdc828a0866a7ae4020387..f6bb3fb2c1ad0b6965bc954727e34a5b0727ea46 100644 (file)
@@ -90,7 +90,7 @@ GetNextEntryAttribute (
           SetGcdMemorySpaceAttributes (MemorySpaceMap, NumberOfDescriptors,\r
               *StartGcdRegion,\r
               (BaseAddress + (Index * TT_ADDRESS_AT_LEVEL(TableLevel))) - *StartGcdRegion,\r
-              PageAttributeToGcdAttribute (EntryAttribute));\r
+              PageAttributeToGcdAttribute (*PrevEntryAttribute));\r
         }\r
 \r
         // Start of the new region\r