]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/BdsLib: Fixed the alignment of the relocated Device Tree
authorOlivier Martin <olivier.martin@arm.com>
Thu, 28 Nov 2013 21:40:48 +0000 (21:40 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 28 Nov 2013 21:40:48 +0000 (21:40 +0000)
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

ArmPkg/Library/BdsLib/BdsLinuxFdt.c

index 57d8dcc907234357f637419d0b351e3d5e8106d5..58db0bdd66c9ac9cd293a6d82d0ca5c3394a831c 100644 (file)
@@ -264,7 +264,7 @@ RelocateFdt (
 {\r
   EFI_STATUS            Status;\r
   INTN                  Error;\r
-  UINT32                FdtAlignment;\r
+  UINT64                FdtAlignment;\r
 \r
   *RelocatedFdtSize = OriginalFdtSize + FDT_ADDITIONAL_ENTRIES_SIZE;\r
 \r