From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=itpcwaFI; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0926d272d9=abner.chang@hpe.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=1xTxXDMa428jPyqk5rRy8Juy3NeAQlmYzw1zvqQbu4Y=; b=itpcwaFIESatouILqFkub3v1V98DecuefgELO/Xv3qiiXoTGaxFBD1Pboqg5ZjiykfKF qVQwSIZOhDUmKNVbgQNG9WvNpJDUXvY28wVdUnXpmM9WV7EAo/NCd82SxX5Pt4BN/ecW ZFHC2NWPYrHhlNunqGxdkwXk03w+mMrG10gUVF7Xyy9qqGd1No5N+LyFoY7TwosQn5Py /1CEWVRpmYTXr6DxUeJ+417MmvYQHtAsIqNpcCNr84BIT8zfk0s4jZ2hrmArPd6SfTi0 SpeTxniqp359bPU3dh7ce4WIplWWRSBeG8GE233tkDuAvnjzQNOGJ+tCS1JH88xIcUL4 yg== 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 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) 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-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> X-Mailer: git-send-email 2.31.1 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 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_07,2021-10-18_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 impostorscore=0 malwarescore=0 adultscore=0 mlxlogscore=989 mlxscore=0 bulkscore=0 spamscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110190056 Content-Transfer-Encoding: quoted-printable 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 @@ =0D [LibraryClasses]=0D BaseLib=0D - PcdLib=0D MemoryAllocationLib=0D + PcdLib=0D PrintLib=0D + RiscVFirmwareContextLib=0D SiliconSiFiveU54CoreInfoLib=0D =0D [Guids]=0D 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=0D Build up platform processor information of SiFive U54 core.=0D =0D - Copyright (c) 2019 - 2020, Hewlett Packard Enterprise Development LP. Al= l rights reserved.
=0D + Copyright (c) 2019 - 2021, Hewlett Packard Enterprise Development LP. Al= l rights reserved.
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D @@ -17,7 +17,7 @@ #include =0D #include =0D #include =0D -#include =0D +#include =0D =0D #include =0D #include =0D @@ -63,7 +63,7 @@ CreateU54E51CoreProcessorSpecificDataHob ( return EFI_INVALID_PARAMETER;=0D }=0D =0D - SbiGetFirmwareContext (&FirmwareContext);=0D + GetFirmwareContextPointer (&FirmwareContext);=0D ASSERT (FirmwareContext !=3D NULL);=0D if (FirmwareContext =3D=3D NULL) {=0D DEBUG ((DEBUG_ERROR, "Failed to get the pointer of EFI_RISCV_OPENSBI_F= IRMWARE_CONTEXT of hart %d\n", HartId));=0D --=20 2.31.1