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.18147.1636948549548999175 for ; Sun, 14 Nov 2021 19:55:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=VCtjvcDK; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0953f1bc5c=abner.chang@hpe.com) Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1AF227wk028403; Mon, 15 Nov 2021 03:55:48 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=8CwJlYGSNLx5IUJZPt/YieIzpEXCUqouTl4+WHzkOuM=; b=VCtjvcDKSdLBZWjzdLg0Ul/fJiay/AnppfB6C3k/VVn03WbrhdudxG3pysjD3hUoO1Ff 8djljYrWbpHn6P0VGgcpUhzJsCFVS5oNI3frj3ZJyYhyl9YO4O2r/Wt4ujvsqNfTFrn6 7OgYicdg1PgJsEvgnPLp+o7D8mJQ2d6UEUw3UM3IeFfphY5DPw2PyRYLf4/qi4d7jss+ 4g+gaReLo5qWttVTEZUYWanJOWAcA16hEMgm+rmEN7tc2beEC66k6LKDzvaD3q7FfkkP 1BVP08+Jm9UjqxTNxmlFnBM2ZoranuYRAE7hjiC0Ni2lnGc1mK6HctQfBEdAD/jz3aHD xQ== Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0b-002e3701.pphosted.com with ESMTP id 3ca3jg3sa1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Nov 2021 03:55:48 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2352.austin.hpe.com (Postfix) with ESMTP id 478E09C; Mon, 15 Nov 2021 03:55:47 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id 32B6E36; Mon, 15 Nov 2021 03:55:46 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Daniel Schaefer , Sunil V L Subject: [edk2-platforms][PATCH 03/14] RiscVPlatformPkg/U500: Use FirmwareContext library Date: Mon, 15 Nov 2021 10:56:29 +0800 Message-Id: <20211115025640.12897-4-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211115025640.12897-1-abner.chang@hpe.com> References: <20211115025640.12897-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: i5saZ048aIFFq0Ikwyc2_5XURdfGNAAf X-Proofpoint-GUID: i5saZ048aIFFq0Ikwyc2_5XURdfGNAAf X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-15_02,2021-11-12_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 spamscore=0 mlxlogscore=716 mlxscore=0 impostorscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111150021 Content-Transfer-Encoding: quoted-printable Use RISC-V FirmwareContext library to set and get the pointer of PeiService on SiFive U5 series platforms. Signed-off-by: Abner Chang Cc: Daniel Schaefer Cc: Sunil V L --- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc b/P= latform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc index 8b7c851dbc..e59fdda59f 100644 --- a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc +++ b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc @@ -177,6 +177,7 @@ [LibraryClasses.common.PEI_CORE]=0D HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf=0D PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServic= esTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf=0D + RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwar= eContextSscratchLib/RiscVFirmwareContextSscratchLib.inf=0D PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf=0D MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAlloc= ationLib.inf=0D PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf= =0D @@ -193,6 +194,7 @@ [LibraryClasses.common.PEIM]=0D HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf=0D PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServic= esTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf=0D + RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwar= eContextSscratchLib/RiscVFirmwareContextSscratchLib.inf=0D PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf=0D MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAlloc= ationLib.inf=0D PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf=0D --=20 2.31.1