audk/ArmPkg
Garrett Kirkendall 7017c2699d ArmPkg/ArmLib: Fix AARCH64 page table entry filling overrun
Update the LastBlockEntry return value when allocating a new page table block
and the parent page table entry is not valid.  Discovered when producing page
table entries for a memory region that spans multiple page table entries of a
parent page table block.  Not very memory space efficient because the rest of
the code could calculate a required page level that is deeper than some blocks
of the memory region might require.  Case that found the problem:
MemoryRegion->VirtualBase = 0
MemoryRegion->Length = 0x7F000000
This fix will create an un-needed level of page table for address
range 0 -> 0x40000000

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Garrett Kirkendall <garrett.kirkendall@amd.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15177 6f19259b-4bc3-4df7-8a09-765794883524
2014-01-24 13:10:54 +00:00
..
Application/LinuxLoader ArmPkg: Fixed unsigned type to be architecture independent 2013-03-12 00:50:46 +00:00
Drivers ArmPkg/CpuDxe: Removed LR adjustement for SVC call 2013-11-28 21:38:56 +00:00
Filesystem/SemihostFs SemihostFs: Fix check for read-only file or file-open 2013-09-23 09:41:19 +00:00
Include ArmPkg/ArmPkg.dec: Redefined PcdSystemMemory(Base|Size) as UINT64 2014-01-10 11:27:31 +00:00
Library ArmPkg/ArmLib: Fix AARCH64 page table entry filling overrun 2014-01-24 13:10:54 +00:00
ArmPkg.dec ArmPkg/ArmPkg.dec: Redefined PcdSystemMemory(Base|Size) as UINT64 2014-01-10 11:27:31 +00:00
ArmPkg.dsc ARM Packages: Renamed PL390Gic driver into ArmGic driver 2013-10-29 06:36:34 +00:00
Contributions.txt EDK II Packages: Add Contributions.txt and License.txt files 2012-04-11 23:19:46 +00:00
License.txt EDK II Packages: Added License.txt files 2012-04-12 16:40:32 +00:00