Revision: 14272
          http://edk2.svn.sourceforge.net/edk2/?rev=14272&view=rev
Author:   oliviermartin
Date:     2013-04-14 09:34:48 +0000 (Sun, 14 Apr 2013)
Log Message:
-----------
ArmPkg/BdsLib: Fix uInitrd detection

This patch corrects a problem detecting uInitrd signature when booting
with FDT.

BdsBootLinuxFdt was attempting to read the signature from InitrdImage which
is zero at this point in the code.  The code now reads the signature from
InitrdImageBase.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ryan Harkin <ryan.har...@linaro.org>
Reviewed-by: Olivier Martin <olivier.mar...@arm.com>

Modified Paths:
--------------
    trunk/edk2/ArmPkg/Library/BdsLib/Arm/BdsLinuxLoader.c

Modified: trunk/edk2/ArmPkg/Library/BdsLib/Arm/BdsLinuxLoader.c
===================================================================
--- trunk/edk2/ArmPkg/Library/BdsLib/Arm/BdsLinuxLoader.c       2013-04-14 
09:33:35 UTC (rev 14271)
+++ trunk/edk2/ArmPkg/Library/BdsLib/Arm/BdsLinuxLoader.c       2013-04-14 
09:34:48 UTC (rev 14272)
@@ -263,7 +263,7 @@
     }
 
     // Check if the initrd is a uInitrd
-    if (*(UINT32*)((UINTN)InitrdImage) == LINUX_UIMAGE_SIGNATURE) {
+    if (*(UINT32*)((UINTN)InitrdImageBase) == LINUX_UIMAGE_SIGNATURE) {
       // Skip the 64-byte image header
       InitrdImage = (EFI_PHYSICAL_ADDRESS)((UINTN)InitrdImageBase + 64);
       InitrdImageSize = InitrdImageBaseSize - 64;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to