summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-11-13 15:09:30 +0000
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2017-11-23 16:05:02 +0000
commitaf47c61845363f7f739d7371edafacc63f575c62 (patch)
tree37a797a5b57cc38d34a6bb7826f1e23789693615 /ArmVirtPkg
parent14ca435fb6c059eaeb7fe6eedbe4738ffaf336d0 (diff)
downloadedk2-af47c61845363f7f739d7371edafacc63f575c62.tar.gz
edk2-af47c61845363f7f739d7371edafacc63f575c62.tar.bz2
edk2-af47c61845363f7f739d7371edafacc63f575c62.zip
ArmVirtPkg/PrePi: run all library constructors by hand
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>
Diffstat (limited to 'ArmVirtPkg')
-rwxr-xr-xArmVirtPkg/PrePi/PrePi.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/ArmVirtPkg/PrePi/PrePi.c b/ArmVirtPkg/PrePi/PrePi.c
index c69cff249e..3679087aec 100755
--- a/ArmVirtPkg/PrePi/PrePi.c
+++ b/ArmVirtPkg/PrePi/PrePi.c
@@ -29,15 +29,9 @@
#include "PrePi.h"
#include "LzmaDecompress.h"
-EFI_STATUS
-EFIAPI
-ExtractGuidedSectionLibConstructor (
- VOID
- );
-
-EFI_STATUS
+VOID
EFIAPI
-LzmaDecompressLibConstructor (
+ProcessLibraryConstructorList (
VOID
);
@@ -125,8 +119,7 @@ PrePiMain (
PERF_START (NULL, "PEI", NULL, StartTimeStamp);
// SEC phase needs to run library constructors by hand.
- ExtractGuidedSectionLibConstructor ();
- LzmaDecompressLibConstructor ();
+ ProcessLibraryConstructorList ();
// Build HOBs to pass up our version of stuff the DXE Core needs to save space
BuildPeCoffLoaderHob ();