From nobody Sun Feb 8 17:21:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+47537+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+47537+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1568865101; cv=none; d=zoho.com; s=zohoarc; b=hCSlXhd4mo7k6R0lpHQBPmuEhSM+tvlSzsjbVMbiuK35Mzj2SdRtTqMl6S6ZOZeTCc+P8uFxl88Bovc3SuqaOPdPk25OWFr2JZRn668Lfhsei8PgrhtECf3jBSCTUYp5VuZU1SnEYX7zW2MSvNt4HlfyNCacu8vH2Wp7cn4a5YY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568865101; h=Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=R79Rb2srgC350/e4pcSU84ryDb48xLT2e7YqXTSV83s=; b=JzsYAM6+Hnxlxt81P8zbFiRIvYwELBtdg0zBEol1Io4LcmCcaM0ug0NlZ3Wa3DXjSVe9FjbqvZZy9idxWObYH01TA6jPvw59eU7VnVYThHwM6umzvFXTnVm14tZchAVNQYR5NPBGS7t++hsuj/MxdD3fEf4E2gwl2BJVFokuO2c= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+47537+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 1568865101311693.1894561649889; Wed, 18 Sep 2019 20:51:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 5oCTYY1788612xVtAby0RzZU; Wed, 18 Sep 2019 20:51:40 -0700 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by groups.io with SMTP; Wed, 18 Sep 2019 20:51:40 -0700 X-Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8J3pdLs030784 for ; Thu, 19 Sep 2019 03:51:39 GMT X-Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0a-002e3701.pphosted.com with ESMTP id 2v3vapnb6q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 19 Sep 2019 03:51:39 +0000 X-Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 1066F4E for ; Thu, 19 Sep 2019 03:51:39 +0000 (UTC) X-Received: from ARBDN0VRAE.asiapacific.hpqcorp.net (arbdn0vrae.asiapacific.hpqcorp.net [10.43.41.0]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 41EB145 for ; Thu, 19 Sep 2019 03:51:38 +0000 (UTC) From: "Gilbert Chen" To: devel@edk2.groups.io Subject: [edk2-devel] [plaforms/devel-riscv-v2 PATCHv2 04/14] RiscV/Include: Initial version of header files in RISC-V platform package Date: Thu, 19 Sep 2019 11:51:21 +0800 Message-Id: <20190919035131.4700-5-gilbert.chen@hpe.com> In-Reply-To: <20190919035131.4700-1-gilbert.chen@hpe.com> References: <20190919035131.4700-1-gilbert.chen@hpe.com> 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,gilbert.chen@hpe.com X-Gm-Message-State: 3USMkio0TtE4P0X9BeeM0NT2x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1568865100; bh=C8I+kU+vYJ4T3diFOTdY465p1xCyK80zBCpPXdC0gWE=; h=Date:From:Reply-To:Subject:To; b=CbdY8wrnk6mJRBTzSo13DyA0YT66UNFFAQfny5HHFjmxn0htKQvPBo5P4vyqaLBaPiP zL7rpsHuHM/tv1YcRDrPie/BXl9wL/YIXAV9Cif13sblksdJIuqtff+WP26CXd7nc8wfd jy2OIyNSPhuDeNxN9TRRI3SyX9kFfrJ0NLY= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" FirmwareContextProcessorSpecificLib.h - The difinitions of Firmware Context EDK2 implementaion based on RISC-V OpenSBI. Signed-off-by: Gilbert Chen --- .../Library/FirmwareContextProcessorSpecificLib.h | 40 ++++++++++++++++++= ++++ 1 file changed, 40 insertions(+) create mode 100644 Platform/RiscV/Include/Library/FirmwareContextProcessor= SpecificLib.h diff --git a/Platform/RiscV/Include/Library/FirmwareContextProcessorSpecifi= cLib.h b/Platform/RiscV/Include/Library/FirmwareContextProcessorSpecificLib= .h new file mode 100644 index 00000000..772a0783 --- /dev/null +++ b/Platform/RiscV/Include/Library/FirmwareContextProcessorSpecificLib.h @@ -0,0 +1,40 @@ +/** @file + Firmware Context Processor-specific common library + + Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All right= s reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ +#ifndef _FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H_ +#define _FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H_ + +#include + +/** + Build up common firmware context processor-specific information + + @param FirmwareContextHartSpecific Pointer to EFI_RISCV_FIRMWARE_CONTE= XT_HART_SPECIFIC + @param ParentProcessorGuid Pointer to GUID of Processor which = contains this core + @param ParentProcessorUid Unique ID of pysical processor whic= h owns this core. + @param CoreGuid Pointer to GUID of core + @param HartId Hart ID of this core. + @param IsBootHart This is boot hart or not + @param ProcessorSpecDataHob Pointer to RISC_V_PROCESSOR_SPECIFI= C_DATA_HOB + + @return EFI_STATUS + +**/ +EFI_STATUS +EFIAPI +CommonFirmwareContextHartSpecificInfo ( + EFI_RISCV_FIRMWARE_CONTEXT_HART_SPECIFIC *FirmwareContextHartSpecific, + EFI_GUID *ParentProcessorGuid, + UINTN ParentProcessorUid, + EFI_GUID *CoreGuid, + UINTN HartId, + BOOLEAN IsBootHart, + RISC_V_PROCESSOR_SPECIFIC_DATA_HOB *ProcessorSpecDataHob + ); + +#endif --=20 2.12.0.windows.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 (#47537): https://edk2.groups.io/g/devel/message/47537 Mute This Topic: https://groups.io/mt/34196351/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-