From nobody Mon Feb 9 03:13:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+82313+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82313+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1634634503; cv=none; d=zohomail.com; s=zohoarc; b=fdWGdCe+5TP5Gnz8aj4Z8xfh8krjCN6WPLc25eAJtzaJGZMulevOtiSGp4Ne+56GsZS+hxrSSfLl+I/xkPf6axnlFekZwkvlUnGUExhdgCF9TvnKRx2HzA9HqCMwez6o3uY6IOubhTlW5pVIOvH3R2a6evfAYUekwO/VJO1ySdA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634634503; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=rOPNWg6ohWJbADztFv33Tir1rFexgdG2PxkeZlwBssc=; b=BafA4/yZTntD8EPuaChLbe/i+s34CzG3KN3P/eDIsQ9FNPRhQsdGSABVjO2MPFwzrMAHTsGAAAGk1MTizqp8az0eqNyzMXjFPf9wXaZ0h09MgJp3bMFez4E8xjs+bbIPplTCfOX81l0Iox2seQTpQqlb3X1i5Rx25AXPufOv8s8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82313+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1634634503975845.6609503296656; Tue, 19 Oct 2021 02:08:23 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Bf9gYY1788612xiKvev5GZFs; Tue, 19 Oct 2021 02:08:23 -0700 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web08.7304.1634634500366225397 for ; Tue, 19 Oct 2021 02:08:22 -0700 X-Received: from pps.filterd (m0134422.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19J869tN021715; Tue, 19 Oct 2021 09:08:20 GMT X-Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 3bst7b8g5c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Oct 2021 09:08:20 +0000 X-Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3427.houston.hpe.com (Postfix) with ESMTP id 3628D76; Tue, 19 Oct 2021 09:08:19 +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 26DB248; Tue, 19 Oct 2021 09:08:17 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Sunil V L , Daniel Schaefer Subject: [edk2-devel] [edk2-platforms][PATCH 05/30] Platform/RISC-V: Add library to get PPI descriptor Date: Tue, 19 Oct 2021 16:09:42 +0800 Message-Id: <20211019081007.31165-6-abner.chang@hpe.com> In-Reply-To: <20211019081007.31165-1-abner.chang@hpe.com> References: <20211019081007.31165-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: O2xTd6G1OnUaN8UU1js29GuWodxLzUry X-Proofpoint-GUID: O2xTd6G1OnUaN8UU1js29GuWodxLzUry X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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: KAa4kJK7pyEeQfsmmpR3JgdNx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1634634503; bh=jqOE2G30NoG9kd3HqsqHR+9cRHXZv3KBswkrfTImuz0=; h=Cc:Date:From:Reply-To:Subject:To; b=b311iHCSJqlFhj3srbxAdKlZ+b4g9AzXh36Dg/Rv+MWOJ6XsZnogZX5QXtb99NZamab MzMa9955QChF9xPW/HLMhQK+X2QvnVA8oFGhbygmGj9yU3ElgMyQD4TgwV/hTbw3HFnXe Or5k7cmY6jkuQfIgTc7UnwYxAlBBEASyuzg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1634634504860100005 Content-Type: text/plain; charset="utf-8" The library to provide the platform PPI descriptors in PEI core entry before executing PEI core. Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang --- .../RISC-V/PlatformPkg/RiscVPlatformPkg.dsc | 2 ++ .../PlatformSecPpiLibNull.inf | 36 +++++++++++++++++++ .../Include/Library/PlatformSecPpiLib.h | 24 +++++++++++++ .../PlatformSecPpiLibNull/PlatformSecPpiLib.c | 28 +++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNu= ll/PlatformSecPpiLibNull.inf create mode 100644 Platform/RISC-V/PlatformPkg/Include/Library/PlatformSec= PpiLib.h create mode 100644 Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNu= ll/PlatformSecPpiLib.c diff --git a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dsc b/Platform/RI= SC-V/PlatformPkg/RiscVPlatformPkg.dsc index 8eec09549f..b96324e961 100644 --- a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dsc +++ b/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dsc @@ -61,6 +61,7 @@ [LibraryClasses.common.PEI_CORE] # RISC-V platform PEI core entry point. PeiCoreEntryPoint|Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/= PeiCoreEntryPoint.inf + PlatformSecPpiLib|Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibN= ull/PlatformSecPpiLibNull.inf =20 [LibraryClasses.common.PEIM] FirmwareContextProcessorSpecificLib|Platform/RISC-V/PlatformPkg/Library/= FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSpecificLib.inf @@ -82,6 +83,7 @@ Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificLib/= FirmwareContextProcessorSpecificLib.inf Platform/RISC-V/PlatformPkg/Library/RiscVPlatformTempMemoryInitLibNull/R= iscVPlatformTempMemoryInitLibNull.inf Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.= inf + Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/PlatformSecPpi= LibNull.inf =20 [Components.common.SEC] Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/Plat= formSecPpiLibNull.inf b/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiL= ibNull/PlatformSecPpiLibNull.inf new file mode 100644 index 0000000000..22f5751655 --- /dev/null +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/PlatformSec= PpiLibNull.inf @@ -0,0 +1,36 @@ +## @file +# Library instance to to provide PPI before PEI Core +# +# Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x0001001b + BASE_NAME =3D PlatformSecPpiLib + FILE_GUID =3D A2CDDADC-CB65-4EED-9CAE-192B0BDD6C84 + MODULE_TYPE =3D PEIM + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D PlatformSecPpiLib|PEI_CORE + +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D RISCV64 +# + +[Sources] + PlatformSecPpiLib.c + +[Packages] + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec + #Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec + +[LibraryClasses] + #BaseLib + #PrintLib + diff --git a/Platform/RISC-V/PlatformPkg/Include/Library/PlatformSecPpiLib.= h b/Platform/RISC-V/PlatformPkg/Include/Library/PlatformSecPpiLib.h new file mode 100644 index 0000000000..88468e660b --- /dev/null +++ b/Platform/RISC-V/PlatformPkg/Include/Library/PlatformSecPpiLib.h @@ -0,0 +1,24 @@ +/** @file + RISC-V platform SEC PPI before PEI Core. + + Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All right= s reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef RISCV_PLATFORM_SEC_PPI_H_ +#define RISCV_PLATFORM_SEC_PPI_H_ + +#include + +/** Return platform SEC PPI before PEI Core + + @param[in,out] ThisPpiList Pointer to retrieve EFI_PEI_PPI_DESCRIPTOR. + +**/ +EFI_STATUS +GetPlatformPrePeiCorePpiDescriptor ( + IN OUT EFI_PEI_PPI_DESCRIPTOR **ThisPpiList +); + +#endif diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/Plat= formSecPpiLib.c b/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull= /PlatformSecPpiLib.c new file mode 100644 index 0000000000..d5c089b02d --- /dev/null +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/PlatformSec= PpiLib.c @@ -0,0 +1,28 @@ +/**@file + NULL library instance of PlatformSecPpiLib + + Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All right= s reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +// +// The package level header files this module uses +// +#include + +/** Return platform SEC PPI before PEI Core + + @param[in,out] ThisPpiList Pointer to retrieve EFI_PEI_PPI_DESCRIPTOR. + +**/ +EFI_STATUS +GetPlatformPrePeiCorePpiDescriptor ( + IN OUT EFI_PEI_PPI_DESCRIPTOR **ThisPpiList +) +{ + *ThisPpiList =3D NULL; + return EFI_NOT_FOUND; +} + --=20 2.31.1 -=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 (#82313): https://edk2.groups.io/g/devel/message/82313 Mute This Topic: https://groups.io/mt/86435663/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-