mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
ArmPlatformPkg/PrePi: call all constructors by hand
Call ProcessLibraryConstructorList () to invoke all library constructors by hand rather than calling only some of them explicitly. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
parent
2dd8fd8f7e
commit
6efd58aa5c
@ -36,18 +36,6 @@
|
|||||||
UINT64 mSystemMemoryEnd = FixedPcdGet64(PcdSystemMemoryBase) +
|
UINT64 mSystemMemoryEnd = FixedPcdGet64(PcdSystemMemoryBase) +
|
||||||
FixedPcdGet64(PcdSystemMemorySize) - 1;
|
FixedPcdGet64(PcdSystemMemorySize) - 1;
|
||||||
|
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
|
||||||
ExtractGuidedSectionLibConstructor (
|
|
||||||
VOID
|
|
||||||
);
|
|
||||||
|
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
|
||||||
LzmaDecompressLibConstructor (
|
|
||||||
VOID
|
|
||||||
);
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
GetPlatformPpi (
|
GetPlatformPpi (
|
||||||
IN EFI_GUID *PpiGuid,
|
IN EFI_GUID *PpiGuid,
|
||||||
@ -165,8 +153,7 @@ PrePiMain (
|
|||||||
PERF_START (NULL, "PEI", NULL, StartTimeStamp);
|
PERF_START (NULL, "PEI", NULL, StartTimeStamp);
|
||||||
|
|
||||||
// SEC phase needs to run library constructors by hand.
|
// SEC phase needs to run library constructors by hand.
|
||||||
ExtractGuidedSectionLibConstructor ();
|
ProcessLibraryConstructorList ();
|
||||||
LzmaDecompressLibConstructor ();
|
|
||||||
|
|
||||||
// Build HOBs to pass up our version of stuff the DXE Core needs to save space
|
// Build HOBs to pass up our version of stuff the DXE Core needs to save space
|
||||||
BuildPeCoffLoaderHob ();
|
BuildPeCoffLoaderHob ();
|
||||||
|
@ -87,4 +87,10 @@ ArchInitialize (
|
|||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
ProcessLibraryConstructorList (
|
||||||
|
VOID
|
||||||
|
);
|
||||||
|
|
||||||
#endif /* _PREPI_H_ */
|
#endif /* _PREPI_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user