ArmPkg/BdsLib: Fixed the alignment of the relocated Device Tree

When the Device Tree was loaded above the 32bit address space the operation:
*RelocatedFdt = ALIGN ((UINT64)*RelocatedFdt, (UINT32)FdtAlignment);
was returning an incorrect address.

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@14915 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Olivier Martin 2013-11-28 21:40:48 +00:00 committed by oliviermartin
parent 34b292fa9e
commit ff58c9147b
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ RelocateFdt (
{ {
EFI_STATUS Status; EFI_STATUS Status;
INTN Error; INTN Error;
UINT32 FdtAlignment; UINT64 FdtAlignment;
*RelocatedFdtSize = OriginalFdtSize + FDT_ADDITIONAL_ENTRIES_SIZE; *RelocatedFdtSize = OriginalFdtSize + FDT_ADDITIONAL_ENTRIES_SIZE;