summaryrefslogtreecommitdiff
path: root/ArmPkg/Drivers/CpuDxe
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2013-09-16 09:32:59 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2013-09-16 09:32:59 +0000
commit429358b59d3a2af7f8913647d4ec279fc6073218 (patch)
treee5f9033b9481876030214a769dacdb3f674c03de /ArmPkg/Drivers/CpuDxe
parent2a414cd3c35f09978124936f3377b073f2ce37fc (diff)
downloadedk2-429358b59d3a2af7f8913647d4ec279fc6073218.zip
edk2-429358b59d3a2af7f8913647d4ec279fc6073218.tar.gz
edk2-429358b59d3a2af7f8913647d4ec279fc6073218.tar.bz2
ArmPkg/CpuDxe: Fixed attribute setting in GetNextEntryAttribute()
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
Diffstat (limited to 'ArmPkg/Drivers/CpuDxe')
-rw-r--r--ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c b/ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c
index 72f9b3c..f6bb3fb 100644
--- a/ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c
+++ b/ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c
@@ -90,7 +90,7 @@ GetNextEntryAttribute (
SetGcdMemorySpaceAttributes (MemorySpaceMap, NumberOfDescriptors,
*StartGcdRegion,
(BaseAddress + (Index * TT_ADDRESS_AT_LEVEL(TableLevel))) - *StartGcdRegion,
- PageAttributeToGcdAttribute (EntryAttribute));
+ PageAttributeToGcdAttribute (*PrevEntryAttribute));
}
// Start of the new region