mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
ArmVirtPkg/PrePi: remove dependency on ArmPlatformLib
Remove the pointless dependency on ArmPlatformLib: none of the code we call from it actually does anything useful. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
832709565e
commit
0ae69a2e04
@ -54,7 +54,6 @@
|
|||||||
LzmaDecompressLib
|
LzmaDecompressLib
|
||||||
PeCoffGetEntryPointLib
|
PeCoffGetEntryPointLib
|
||||||
PrePiLib
|
PrePiLib
|
||||||
ArmPlatformLib
|
|
||||||
ArmPlatformStackLib
|
ArmPlatformStackLib
|
||||||
MemoryAllocationLib
|
MemoryAllocationLib
|
||||||
HobLib
|
HobLib
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
#include <PiPei.h>
|
#include <PiPei.h>
|
||||||
|
#include <Pi/PiBootMode.h>
|
||||||
|
|
||||||
#include <Library/PrePiLib.h>
|
#include <Library/PrePiLib.h>
|
||||||
#include <Library/PrintLib.h>
|
#include <Library/PrintLib.h>
|
||||||
@ -85,7 +86,7 @@ PrePiMain (
|
|||||||
BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));
|
BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));
|
||||||
|
|
||||||
// Set the Boot Mode
|
// Set the Boot Mode
|
||||||
SetBootMode (ArmPlatformGetBootMode ());
|
SetBootMode (BOOT_WITH_FULL_CONFIGURATION);
|
||||||
|
|
||||||
// Initialize Platform HOBs (CpuHob and FvHob)
|
// Initialize Platform HOBs (CpuHob and FvHob)
|
||||||
Status = PlatformPeim ();
|
Status = PlatformPeim ();
|
||||||
@ -123,9 +124,6 @@ CEntryPoint (
|
|||||||
{
|
{
|
||||||
UINT64 StartTimeStamp;
|
UINT64 StartTimeStamp;
|
||||||
|
|
||||||
// Initialize the platform specific controllers
|
|
||||||
ArmPlatformInitialize (MpId);
|
|
||||||
|
|
||||||
if (PerformanceMeasurementEnabled ()) {
|
if (PerformanceMeasurementEnabled ()) {
|
||||||
// Initialize the Timer Library to setup the Timer HW controller
|
// Initialize the Timer Library to setup the Timer HW controller
|
||||||
TimerConstructor ();
|
TimerConstructor ();
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include <Library/MemoryAllocationLib.h>
|
#include <Library/MemoryAllocationLib.h>
|
||||||
#include <Library/HobLib.h>
|
#include <Library/HobLib.h>
|
||||||
#include <Library/SerialPortLib.h>
|
#include <Library/SerialPortLib.h>
|
||||||
#include <Library/ArmPlatformLib.h>
|
|
||||||
|
|
||||||
#define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);
|
#define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user