From 1093e3074fba9ddbb6e6a9738c1b53a0f7389bb7 Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Fri, 24 Feb 2012 16:05:00 +0000 Subject: ArmPkg/BdsLib: Fixed LinuxImageSize if uImagei format The uImage is 64Bytes smaller (size of the u-boot header) than the size of the file read from the file system. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13030 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Library/BdsLib/BdsLinuxLoader.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ArmPkg') diff --git a/ArmPkg/Library/BdsLib/BdsLinuxLoader.c b/ArmPkg/Library/BdsLib/BdsLinuxLoader.c index 12a88623db..d2e0effb35 100644 --- a/ArmPkg/Library/BdsLib/BdsLinuxLoader.c +++ b/ArmPkg/Library/BdsLib/BdsLinuxLoader.c @@ -79,6 +79,7 @@ StartLinux ( if (*(UINT32*)LinuxKernel == LINUX_UIMAGE_SIGNATURE) { // Assume the Image Entry Point is just after the uImage header (64-byte size) LinuxKernel = (LINUX_KERNEL)((UINTN)LinuxKernel + 64); + LinuxImageSize -= 64; } //TODO: Check there is no overlapping between kernel and Atag -- cgit v1.2.3