diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-24 16:05:00 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-24 16:05:00 +0000 |
commit | 1093e3074fba9ddbb6e6a9738c1b53a0f7389bb7 (patch) | |
tree | ca3b33c2255c10b5e59e1faa3ac888a4ab3d0c5c | |
parent | 48837c22861339eb46af60131b72d9f89aa228c1 (diff) | |
download | edk2-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.c | 1 |
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 |