You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
SimicsOpenBoardPkg: Fix GCC build issues
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2162 Removed unused functions in SecMain.c and BdsPlatform.c. Cc: David Wei <david.y.wei@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Ankit Sinha <ankit.sinha@intel.com> Cc: Agyeman Prince <prince.agyeman@intel.com> Cc: Kubacki Michael A <michael.a.kubacki@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Prince Agyeman <prince.agyeman@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com> Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
This commit is contained in:
committed by
Michael Kubacki
parent
f75f73b341
commit
9e89ad4b9e
@@ -316,12 +316,6 @@ ConnectRootBridge (
|
||||
IN VOID *Context
|
||||
);
|
||||
|
||||
STATIC
|
||||
VOID
|
||||
SaveS3BootScript (
|
||||
VOID
|
||||
);
|
||||
|
||||
//
|
||||
// BDS Platform Functions
|
||||
//
|
||||
@@ -1296,38 +1290,6 @@ PlatformBdsConnectSequence (
|
||||
PciAcpiInitialization ();
|
||||
}
|
||||
|
||||
/**
|
||||
Save the S3 boot script.
|
||||
|
||||
Note that DxeSmmReadyToLock must be signaled after this function returns;
|
||||
otherwise the script wouldn't be saved actually.
|
||||
**/
|
||||
STATIC
|
||||
VOID
|
||||
SaveS3BootScript (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_S3_SAVE_STATE_PROTOCOL *BootScript;
|
||||
STATIC CONST UINT8 Info[] = { 0xDE, 0xAD, 0xBE, 0xEF };
|
||||
|
||||
Status = gBS->LocateProtocol (&gEfiS3SaveStateProtocolGuid, NULL,
|
||||
(VOID **) &BootScript);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
//
|
||||
// Despite the opcode documentation in the PI spec, the protocol
|
||||
// implementation embeds a deep copy of the info in the boot script, rather
|
||||
// than storing just a pointer to runtime or NVS storage.
|
||||
//
|
||||
Status = BootScript->Write(BootScript, EFI_BOOT_SCRIPT_INFORMATION_OPCODE,
|
||||
(UINT32) sizeof Info,
|
||||
(EFI_PHYSICAL_ADDRESS)(UINTN) &Info);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Do the platform specific action after the console is ready
|
||||
|
||||
|
||||
@@ -495,29 +495,6 @@ FindPeiCoreImageBaseInFv (
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Reads 8-bits of CMOS data.
|
||||
|
||||
Reads the 8-bits of CMOS data at the location specified by Index.
|
||||
The 8-bit read value is returned.
|
||||
|
||||
@param Index The CMOS location to read.
|
||||
|
||||
@return The value read.
|
||||
|
||||
**/
|
||||
STATIC
|
||||
UINT8
|
||||
CmosRead8 (
|
||||
IN UINTN Index
|
||||
)
|
||||
{
|
||||
IoWrite8 (0x70, (UINT8) Index);
|
||||
return IoRead8 (0x71);
|
||||
}
|
||||
|
||||
|
||||
STATIC
|
||||
BOOLEAN
|
||||
IsS3Resume (
|
||||
|
||||
Reference in New Issue
Block a user