From nobody Sat May 4 16:57:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+55685+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55685+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1583751872; cv=none; d=zohomail.com; s=zohoarc; b=b6maCC9Dof4/9xoAlsO4BqK+APXi+7+ZY9qiw/K/678V0FxJ5I4xopMxLh5qYXRIE5cOTs5dTPOEDtR2ZDatuoqGLDVIqN81e4DlcP+s9BYe7nwr/gFhl0AO2TILvit0xHKG4Ka5INx47BVYiL2bKQc1c1aEXEMrCzgMV1y/lqI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583751872; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=OA1Ay5dN5DpKepOmQRbZqrZzgDimyDtj0TIuAqb7WS4=; b=mthPTcX8qVGG545+U1/1TWnebZ8xjmyTjZ5Xqg3m6AaXjrk18Qf6+eR0QcNcZyR3cnvsFWBb9HlQkQNythiLf0Igp3TR7ywZUmPGyjt95j5OsQx3sAACtSBtlfJ3I0GrMg/ruXUcZe6qsTDKd8Ho5WhsqzQv3Jyt9hJh+lifWV0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55685+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1583751872193719.2073490280699; Mon, 9 Mar 2020 04:04:32 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id TbwTYY1788612xmbtMIZMYwF; Mon, 09 Mar 2020 04:04:31 -0700 X-Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web11.53707.1583751870831118773 for ; Mon, 09 Mar 2020 04:04:31 -0700 X-Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 029AwVA0005854; Mon, 9 Mar 2020 11:04:30 GMT X-Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com with ESMTP id 2ym63c3465-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Mar 2020 11:04:29 +0000 X-Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 2761A4E; Mon, 9 Mar 2020 11:04:29 +0000 (UTC) X-Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 574724A; Mon, 9 Mar 2020 11:04:26 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Leif Lindholm , Michael D Kinney , Liming Gao , Ard Biesheuvel , Laszlo Ersek , Dandan Bi , Daniel Schaefer , Gilbert Chen Subject: [edk2-devel] [edk2/master PATCH DxeIplHandoffLib v1] MdePkg/DxeIplHandoffLibNullLib: Abstract DxeIpl Date: Mon, 9 Mar 2020 18:27:40 +0800 Message-Id: <20200309102740.8591-1-abner.chang@hpe.com> X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: jM7AM9R2cquZIEnvttnO5WBQx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1583751871; bh=KTVSUE7yIrYU5lI2nQ6e2LTtzRXtUtwd8TjkTAg1nMw=; h=Cc:Date:From:Reply-To:Subject:To; b=CL3205Hcu2zvjmL+/7od111f6ED8KEDqQQaSQWyAKlYJ482SL06QmJ3IMLuG5O7kOkW 40F/HYRNmPzhw2L/HvqB6WxOvqpSDz3kCksuIOThMK0R0SuInIIbkyF3/mS7CPdJypsRq jFSICytXYLWdjRqMfLbEJgMAXGE5Vdb+A5g= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" BZ:2583: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2583 Current DxeIpl has bindings for different processor architectures, this results in MdeModulePkg has the dependence with processor architecture packages such as ArmPkg or RiscVPkg. This also leads CI testing to error during package dependency check. Provide a default DxeIplHandoff library to abstract processor architecture from DxeIpl driver, platform can provide its own library instance for the processor architecture- specific implementation. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Michael D Kinney Cc: Liming Gao Cc: Ard Biesheuvel Cc: Laszlo Ersek Cc: Dandan Bi Cc: Daniel Schaefer Cc: Gilbert Chen --- MdeModulePkg/MdeModulePkg.dsc | 2 ++ .../DxeIplHandoffLibNull.inf | 30 +++++++++++++++++ .../DxeIplHandoffLibNull.c | 33 +++++++++++++++++++ .../DxeIplHandoffLibNull.uni | 14 ++++++++ 4 files changed, 79 insertions(+) create mode 100644 MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoff= LibNull.inf create mode 100644 MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoff= LibNull.c create mode 100644 MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoff= LibNull.uni diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc index f7dbb27ce2..6eb922dfaa 100644 --- a/MdeModulePkg/MdeModulePkg.dsc +++ b/MdeModulePkg/MdeModulePkg.dsc @@ -3,6 +3,7 @@ # # (C) Copyright 2014 Hewlett-Packard Development Company, L.P.
# Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.
+# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All right= s reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -321,6 +322,7 @@ MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgr= essLibGraphics.inf MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressL= ibText.inf + MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull.inf =20 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf diff --git a/MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull= .inf b/MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull.inf new file mode 100644 index 0000000000..b7210656b7 --- /dev/null +++ b/MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull.inf @@ -0,0 +1,30 @@ +## @file +# Null DXE IPL handoff to DXE Core Library instance. +# +# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x0001001b + BASE_NAME =3D DxeIplHandoffLibNull + MODULE_UNI_FILE =3D DxeIplHandoffLibNull.uni + FILE_GUID =3D 5c18812d-3684-4093-bc75-fc846a595353 + MODULE_TYPE =3D BASE + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D DxeIplHandoffLib + +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D RISCV64 +# + +[Sources] + DxeIplHandoffLibNull.c + +[Packages] + MdePkg/MdePkg.dec + diff --git a/MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull= .c b/MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull.c new file mode 100644 index 0000000000..c83922cb6e --- /dev/null +++ b/MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull.c @@ -0,0 +1,33 @@ +/** @file + NULL instance of DXE IPL handoff to DXE Core Library. + + Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All right= s reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include +#include + +/** + Transfers control to DxeCore. + + This function performs a CPU architecture specific operations to execute + the entry point of DxeCore with the parameters of HobList. + It also installs EFI_END_OF_PEI_PPI to signal the end of PEI phase. + + @param DxeCoreEntryPoint The entry point of DxeCore. + @param HobList The start of HobList passed to DxeCore. + +**/ +VOID +HandOffToDxeCore ( + IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint, + IN EFI_PEI_HOB_POINTERS HobList + ) +{ + DEBUG ((DEBUG_INFO, "No implementation of DXE IPL handoff to DXE Core li= brary.\r\n")); + ASSERT (FALSE); +} + diff --git a/MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull= .uni b/MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull.uni new file mode 100644 index 0000000000..5a8973d6e5 --- /dev/null +++ b/MdeModulePkg/Library/DxeIplHandoffLibNull/DxeIplHandoffLibNull.uni @@ -0,0 +1,14 @@ +// /** @file +// Null DXE IPL handoff to DXE Core Library instance. +// +// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
+// +// SPDX-License-Identifier: BSD-2-Clause-Patent +// +// **/ + + +#string STR_MODULE_ABSTRACT #language en-US "Null DXE IPL hand= off to DXE Core Library instance." + +#string STR_MODULE_DESCRIPTION #language en-US "Null DXE IPL hand= off to DXE Core Library instance." + --=20 2.25.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#55685): https://edk2.groups.io/g/devel/message/55685 Mute This Topic: https://groups.io/mt/71832171/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-