]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg/PrePi: run all library constructors by hand
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 13 Nov 2017 15:09:30 +0000 (15:09 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 23 Nov 2017 16:05:02 +0000 (16:05 +0000)
Instead of invoking the library constructors of some libraries by
hand, invoke the generated function ProcessLibraryConstructorList
in AutoGen.c so all constructors are executed.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/PrePi/PrePi.c

index c69cff249e80e4f3cfae16aec65c623f7eebc023..3679087aec4d290301bcb14d426a9a7e86a75ee9 100755 (executable)
 #include "PrePi.h"\r
 #include "LzmaDecompress.h"\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-ExtractGuidedSectionLibConstructor (\r
-  VOID\r
-  );\r
-\r
-EFI_STATUS\r
+VOID\r
 EFIAPI\r
-LzmaDecompressLibConstructor (\r
+ProcessLibraryConstructorList (\r
   VOID\r
   );\r
 \r
@@ -125,8 +119,7 @@ PrePiMain (
   PERF_START (NULL, "PEI", NULL, StartTimeStamp);\r
 \r
   // SEC phase needs to run library constructors by hand.\r
-  ExtractGuidedSectionLibConstructor ();\r
-  LzmaDecompressLibConstructor ();\r
+  ProcessLibraryConstructorList ();\r
 \r
   // Build HOBs to pass up our version of stuff the DXE Core needs to save space\r
   BuildPeCoffLoaderHob ();\r