]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/CpuDxe: Fixed attribute setting in GetNextEntryAttribute()
authorOlivier Martin <olivier.martin@arm.com>
Mon, 16 Sep 2013 09:32:59 +0000 (09:32 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 Sep 2013 09:32:59 +0000 (09:32 +0000)
The wrong attribute was used to set the region.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14676 6f19259b-4bc3-4df7-8a09-765794883524

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