From: "Kubacki, Michael A" <michael.a.kubacki@intel.com>
To: "Agyeman, Prince" <prince.agyeman@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "philmd@redhat.com" <philmd@redhat.com>,
"Wei, David Y" <david.y.wei@intel.com>,
"Gao, Liming" <liming.gao@intel.com>,
"Sinha, Ankit" <ankit.sinha@intel.com>,
"Desimone, Nathaniel L" <nathaniel.l.desimone@intel.com>
Subject: Re: [edk2-devel] [PATCH v2 2/3] SimicsOpenBoardPkg: Fix GCC build issues
Date: Wed, 11 Sep 2019 23:54:48 +0000 [thread overview]
Message-ID: <49AB4ACB9627B8468F29D589A27B745588ABECA8@ORSMSX121.amr.corp.intel.com> (raw)
In-Reply-To: <dccd5c2e158d65f2452a55c8029aa32917967248.1568219401.git.prince.agyeman@intel.com>
Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
> -----Original Message-----
> From: Agyeman, Prince
> Sent: Wednesday, September 11, 2019 9:40 AM
> To: devel@edk2.groups.io
> Cc: philmd@redhat.com; Agyeman, Prince <prince.agyeman@intel.com>;
> Wei, David Y <david.y.wei@intel.com>; Gao, Liming <liming.gao@intel.com>;
> Sinha, Ankit <ankit.sinha@intel.com>; Kubacki, Michael A
> <michael.a.kubacki@intel.com>; Desimone, Nathaniel L
> <nathaniel.l.desimone@intel.com>
> Subject: [edk2-devel] [PATCH v2 2/3] SimicsOpenBoardPkg: Fix GCC build
> issues
>
> From: "Agyeman, Prince" <prince.agyeman@intel.com>
>
> Removed unused functions in secMain.c
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2162
>
> 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>
> ---
> .../PlatformBootManagerLib/BdsPlatform.c | 38 -------------------
> .../SimicsOpenBoardPkg/SecCore/SecMain.c | 23 -----------
> 2 files changed, 61 deletions(-)
>
> diff --git
> a/Platform/Intel/SimicsOpenBoardPkg/Library/PlatformBootManagerLib/Bds
> Platform.c
> b/Platform/Intel/SimicsOpenBoardPkg/Library/PlatformBootManagerLib/Bd
> sPlatform.c
> index 117c72b35f..953a4a6c15 100644
> ---
> a/Platform/Intel/SimicsOpenBoardPkg/Library/PlatformBootManagerLib/Bds
> Platform.c
> +++
> b/Platform/Intel/SimicsOpenBoardPkg/Library/PlatformBootManagerLib/Bd
> sPlatform.c
> @@ -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
>
> diff --git a/Platform/Intel/SimicsOpenBoardPkg/SecCore/SecMain.c
> b/Platform/Intel/SimicsOpenBoardPkg/SecCore/SecMain.c
> index 5cbb47687b..4514641b46 100644
> --- a/Platform/Intel/SimicsOpenBoardPkg/SecCore/SecMain.c
> +++ b/Platform/Intel/SimicsOpenBoardPkg/SecCore/SecMain.c
> @@ -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 (
> --
> 2.19.1.windows.1
next prev parent reply other threads:[~2019-09-11 23:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-11 16:40 [edk2-devel] [PATCH v2 0/3] Fix SimicsOpenBoardPkg GCC Build Agyeman, Prince
2019-09-11 16:40 ` [edk2-devel] [PATCH v2 1/3] AdvancedFeaturePkg: Fix GCC build Agyeman, Prince
2019-09-11 23:54 ` Kubacki, Michael A
2019-09-11 16:40 ` [edk2-devel] [PATCH v2 2/3] SimicsOpenBoardPkg: Fix GCC build issues Agyeman, Prince
2019-09-11 23:54 ` Kubacki, Michael A [this message]
2019-09-11 16:40 ` [edk2-devel] [PATCH v2 3/3] SimicsIch10Pkg: " Agyeman, Prince
2019-09-11 23:54 ` Kubacki, Michael A
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49AB4ACB9627B8468F29D589A27B745588ABECA8@ORSMSX121.amr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox