From nobody Mon Feb 9 00:31:04 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+82322+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+82322+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1634634509; cv=none; d=zohomail.com; s=zohoarc; b=NFhAKXgFVW5BvV6Fp/FyY8U/9X4/rhYQ56j9xfZ8SvuJQcMTpKnmoynxl6iTklwYdG2Xoj3s7pxVh1yPms/FOZnHYU6AwGDX3SvWjtn7TOsQnA/rqOrqbhI1C+b460dRkodn/cypJyBSNUhz4Ehk+rJxEwTVvcr7fbu3TCwe4bo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634634509; 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=B9CXGJRERBUSrINcyGYKkj3p7kVsMnXinT7Xe65p7B4=; b=KNuVla1h7y5ZYTKOJq671op3Qni+SQ+e3vCEmz5U+f8v/TMs4tYRcQ4lVz+E9vbD0q91kLStUcyEDi+UTvEX6eGiJumq9jP/US3nlWRogCZCl+qTdOBdJCbUoJW3hklSlf3n+l6Hrtp5Ok072whUOs1XT/k+sZA5/mX8ZYNLAY8= 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+82322+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 1634634509398231.0960021805239; Tue, 19 Oct 2021 02:08:29 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 0jdFYY1788612xdNZ4vGH4hJ; Tue, 19 Oct 2021 02:08:29 -0700 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web12.7275.1634634504464178453 for ; Tue, 19 Oct 2021 02:08:28 -0700 X-Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19J8W6Ou012314; Tue, 19 Oct 2021 09:08:24 GMT X-Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0a-002e3701.pphosted.com with ESMTP id 3bs9b3qrw2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Oct 2021 09:08:24 +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 62B194E; Tue, 19 Oct 2021 09:08:23 +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 536464B; Tue, 19 Oct 2021 09:08:22 +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 08/30] Platform/SiFive: CoreInfoHob uses RiscVFirmwareContextLib Date: Tue, 19 Oct 2021 16:09:45 +0800 Message-Id: <20211019081007.31165-9-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-GUID: w8ra750Tij4C2qY0zYQBgJ_gi4_m_9BC X-Proofpoint-ORIG-GUID: w8ra750Tij4C2qY0zYQBgJ_gi4_m_9BC 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: wm4KxC6YuUL0fmj4WZ1D5afIx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1634634509; bh=A9K7ZthQU5KSw11K9bzU9x0Cgyfxc5Gz8ACUK3elP2o=; h=Cc:Date:From:Reply-To:Subject:To; b=q7Wl2OQ3XivEsvZ0JX1+f8xaEXX59TTlZBifls/7uHtpXUQNiClguaa7EyjksNYA+I1 LZDIlZ6ZCEM1A4hY5KCVCBoRranH2/0Hw2Jrt/+xi2iiRF2Pa2Gw95uZIrv4xmAcBZ5FG cpwcfVcnTANO/PB9Tz5NsqC1QqX1YG0X5DY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1634634511430100002 Content-Type: text/plain; charset="utf-8" CoreInfoHob uses RiscVFirmwareContextLib to get the pointer of FirmwareContext. Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang --- .../Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 3 ++- Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/CoreInfoHob.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreI= nfoHobLib.inf b/Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCo= reInfoHobLib.inf index d741f04747..4fe7827313 100644 --- a/Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobL= ib.inf +++ b/Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobL= ib.inf @@ -34,9 +34,10 @@ =20 [LibraryClasses] BaseLib - PcdLib MemoryAllocationLib + PcdLib PrintLib + RiscVFirmwareContextLib SiliconSiFiveU54CoreInfoLib =20 [Guids] diff --git a/Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/CoreInfoHob.c b/S= ilicon/SiFive/U54/Library/PeiCoreInfoHobLib/CoreInfoHob.c index 326c4525bb..37363a0028 100644 --- a/Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/CoreInfoHob.c +++ b/Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/CoreInfoHob.c @@ -1,7 +1,7 @@ /**@file Build up platform processor information of SiFive U54 core. =20 - Copyright (c) 2019 - 2020, Hewlett Packard Enterprise Development LP. Al= l rights reserved.
+ Copyright (c) 2019 - 2021, Hewlett Packard Enterprise Development LP. Al= l rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -17,7 +17,7 @@ #include #include #include -#include +#include =20 #include #include @@ -63,7 +63,7 @@ CreateU54E51CoreProcessorSpecificDataHob ( return EFI_INVALID_PARAMETER; } =20 - SbiGetFirmwareContext (&FirmwareContext); + GetFirmwareContextPointer (&FirmwareContext); ASSERT (FirmwareContext !=3D NULL); if (FirmwareContext =3D=3D NULL) { DEBUG ((DEBUG_ERROR, "Failed to get the pointer of EFI_RISCV_OPENSBI_F= IRMWARE_CONTEXT of hart %d\n", HartId)); --=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 (#82322): https://edk2.groups.io/g/devel/message/82322 Mute This Topic: https://groups.io/mt/86435673/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-