From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web12.18149.1636948552954208823 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=AJxXSQxN; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0953f1bc5c=abner.chang@hpe.com) Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1AELU01p002751; Mon, 15 Nov 2021 03:55:52 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=5aQPswx+MBHkxzyPMfcMz2lxdE3T7et39qPOCoIbaHY=; b=AJxXSQxNyJgZVvP0hSV07K84DbuG+hMI8VTN2cdm+WZk2k4Vvg/zKYUdJ+ku0wSlbq3p 3QQnVbh7GWjVoNe5WyFVqzDlSJrSl7joVs0m+FrPykEqFclZ//2vcDN4bSmBmuFT/Nyg myfoZPU6x6Y4t6T5Q0tl7Mj1FXLtLtqO0wbT9JvQyoiTYZoyFJp0DPEcaCdkBhGb49fF 4Fy4fWmibe/1/WRenu6S4JVPtsttQIIou+bE+UJFPI095GsCI6wz0Gy8RB1LqgfdR1/F +HwAlrNHGX5bJSuQjz+8do7taD7OfBxW3noYft6YOWktoq7CgXmnB9cK5hzP/f4+t2Z0 sg== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 3ca4bsusgu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Nov 2021 03:55:52 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id 7B8C46D; Mon, 15 Nov 2021 03:55:51 +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 63CD136; Mon, 15 Nov 2021 03:55:50 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Daniel Schaefer , Sunil V L Subject: [edk2-platforms][PATCH 06/14] RiscVPlatformPkg/U500: Uses RISC-V PeiCoreEntryPoint library Date: Mon, 15 Nov 2021 10:56:32 +0800 Message-Id: <20211115025640.12897-7-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-GUID: zP7IyhbfzhyDzFvW77cHXJdtr4IczoAT X-Proofpoint-ORIG-GUID: zP7IyhbfzhyDzFvW77cHXJdtr4IczoAT 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 clxscore=1015 impostorscore=0 mlxlogscore=785 phishscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 adultscore=0 spamscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111150021 Content-Transfer-Encoding: quoted-printable 1. Use RISC-V PeiCoreEntryPoint library instance for opensbi to switch to the next phase with arg0 as HART Id and arg1 as the SEC to PEI handoff data. 2. Introduce EDK2 opensbi platform operation functions. With this, OEM can has its won platform initialization code before and/or after opensbi vendor platform functions. 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 fb1b5b5d22..398da5238c 100644 --- a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc +++ b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc @@ -190,6 +190,8 @@ DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf=0D !endif=0D PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf=0D + # RISC-V platform PEI core entry point.=0D + PeiCoreEntryPoint|Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/= PeiCoreEntryPoint.inf=0D =0D [LibraryClasses.common.PEIM]=0D HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf=0D --=20 2.31.1