]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
Change the behavior of DxeIplLoadFile to load EFI_SECTION_TE first. If failed, LOAD...
[mirror_edk2.git] / MdeModulePkg / Core / DxeIplPeim / DxeLoad.c
index 901b061973965052b64f332de182b40dadeb16a1..7ec7d52039ad6a4f74cd3ef621ace625cb596d6c 100644 (file)
@@ -593,15 +593,23 @@ Returns:
   // Preprocess the FFS file to get a pointer to the PE32 information\r
   // in the enclosed PE32 image.\r
   //\r
 Status = PeiProcessFile (\r
-            EFI_SECTION_PE32,\r
+ Status = PeiProcessFile (\r
+            EFI_SECTION_TE,\r
             FfsHeader,\r
             &Pe32Data,\r
             NULL\r
             );\r
-\r
   if (EFI_ERROR (Status)) {\r
-    return Status;\r
+    Status = PeiProcessFile (\r
+              EFI_SECTION_PE32,\r
+              FfsHeader,\r
+              &Pe32Data,\r
+              NULL\r
+              );\r
+    \r
+    if (EFI_ERROR (Status)) {\r
+      return Status;\r
+    }\r
   }\r
   //\r
   // Load the PE image from the FFS file\r