summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-24 16:05:00 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-24 16:05:00 +0000
commit1093e3074fba9ddbb6e6a9738c1b53a0f7389bb7 (patch)
treeca3b33c2255c10b5e59e1faa3ac888a4ab3d0c5c
parent48837c22861339eb46af60131b72d9f89aa228c1 (diff)
downloadedk2-platforms-1093e3074fba9ddbb6e6a9738c1b53a0f7389bb7.tar.xz
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
-rw-r--r--ArmPkg/Library/BdsLib/BdsLinuxLoader.c1
1 files changed, 1 insertions, 0 deletions
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