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.web08.3780.1641630353301846148 for ; Sat, 08 Jan 2022 00:25:53 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=KMV7nP9M; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=000704d8ca=abner.chang@hpe.com) Received: from pps.filterd (m0148664.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2082KLnJ000631 for ; Sat, 8 Jan 2022 08:25: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=3AVrIfc/YSyYjnScrJqGPtQ1iry9RvdKsHsOXXThujU=; b=KMV7nP9MWEGbkHZEIGO0TWdKiUkcFg9Qn1KWluF5gx6VA8ZznxI6FHBDIxCbteLBba7q Sg92/J2MUba/YDTM9jHvf3VVOhhrDPZyHw8RBu2m9Gcuz3M/RR3Jve/raTxPjeKp7sfp yMpxaaXVpAli41sC9+PX1b4ynY08dS1Vp0aWlX7Fd+thJKMVz8lJ6ZeEiWpEryfqEjlW ry/XwCVMjox9tWRrb6HnMN5d3DSY+Kji/BlAIPXxJeM+mFzZfQXQbnV0VAuGiruTFnJM e5/JTmUKC3G+hzu1YN/cAL5Jz109w0qhscSnRrWglgKonVJsCe7lTzfS6qHtpQeyWbT+ BQ== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3df1qw9941-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 08 Jan 2022 08:25: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 D6A2865 for ; Sat, 8 Jan 2022 08:25:50 +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 2A9C739; Sat, 8 Jan 2022 08:25:49 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com Subject: [PATCH 47/79] Platform/RISC-V: Remove Null instance of OpensbiPlatformLibNull Date: Sat, 8 Jan 2022 15:24:30 +0800 Message-Id: <20220108072444.17879-6-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220108072444.17879-1-abner.chang@hpe.com> References: <20220108072444.17879-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: aH4kED_QwUV9nNfBkUWK4nU_NgvkXuy4 X-Proofpoint-GUID: aH4kED_QwUV9nNfBkUWK4nU_NgvkXuy4 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.11.62.513 definitions=2022-01-08_03,2022-01-07_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 phishscore=0 malwarescore=0 clxscore=1015 suspectscore=0 impostorscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201080064 Content-Transfer-Encoding: quoted-printable (This is migrated from edk2-platforms:Platform) Remove Null instance of OpensbiPlatformLibNull, OpensbiPlatformLib is the generic one for RsicVPlatformPkg. Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang Reviewed-by: Daniel Schaefer Reviewed-by: Sunil V L --- .../RISC-V/PlatformPkg/RiscVPlatformPkg.dsc | 2 +- .../OpensbiPlatformLibNull.inf | 38 -------------- .../Library/OpensbiPlatformLibNull/Platform.c | 51 ------------------- 3 files changed, 1 insertion(+), 90 deletions(-) delete mode 100644 Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibN= ull/OpensbiPlatformLibNull.inf delete mode 100644 Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibN= ull/Platform.c diff --git a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dsc b/Platform/RI= SC-V/PlatformPkg/RiscVPlatformPkg.dsc index ec8875be14..93b3cd8de9 100644 --- a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dsc +++ b/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dsc @@ -77,7 +77,7 @@ PlatformBootManagerLib|Platform/RISC-V/PlatformPkg/Library/PlatformBootM= anagerLib/PlatformBootManagerLib.inf=0D =0D [Components.common]=0D - Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibNull/OpensbiPlatfo= rmLibNull.inf=0D + Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatformLi= b.inf=0D Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/PlatformMe= moryTestLibNull.inf=0D Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootM= anagerLib.inf=0D Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/Platfo= rmUpdateProgressLibNull.inf=0D diff --git a/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibNull/Ope= nsbiPlatformLibNull.inf b/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatfo= rmLibNull/OpensbiPlatformLibNull.inf deleted file mode 100644 index 125a1220bc..0000000000 --- a/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibNull/OpensbiPla= tformLibNull.inf +++ /dev/null @@ -1,38 +0,0 @@ -## @file=0D -# RISC-V OpenSbi Platform NULL Library=0D -#=0D -# Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D -#=0D -# SPDX-License-Identifier: BSD-2-Clause-Patent=0D -#=0D -##=0D -=0D -[Defines]=0D - INF_VERSION =3D 0x0001001b=0D - BASE_NAME =3D RiscVOpensbiPlatformLibNull=0D - FILE_GUID =3D 9424ED54-EBDA-4FB5-8FF6-8291B07BB151= =0D - MODULE_TYPE =3D SEC=0D - VERSION_STRING =3D 1.0=0D - LIBRARY_CLASS =3D RiscVOpensbiPlatformLib=0D -=0D -#=0D -# The following information is for reference only and not required by the = build tools.=0D -#=0D -# VALID_ARCHITECTURES =3D RISCV64=0D -#=0D -=0D -[Sources]=0D - Platform.c=0D -=0D -[Packages]=0D - MdeModulePkg/MdeModulePkg.dec=0D - MdePkg/MdePkg.dec=0D - Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec=0D -=0D -[LibraryClasses]=0D - BaseLib=0D - BaseMemoryLib=0D - DebugLib=0D - DebugAgentLib=0D -=0D -=0D diff --git a/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibNull/Pla= tform.c b/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibNull/Platfo= rm.c deleted file mode 100644 index b7e39d19c1..0000000000 --- a/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibNull/Platform.c +++ /dev/null @@ -1,51 +0,0 @@ -/*=0D - *=0D - * Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D - *=0D - * SPDX-License-Identifier: BSD-2-Clause=0D - *=0D - * Copyright (c) 2019 Western Digital Corporation or its affiliates.=0D - *=0D - * Authors:=0D - * Atish Patra =0D - */=0D -=0D -#include =0D -#include =0D -=0D -const struct sbi_platform_operations platform_ops =3D {=0D - .early_init =3D NULL,=0D - .final_init =3D NULL,=0D - .early_exit =3D NULL,=0D - .final_exit =3D NULL,=0D - .domains_root_regions =3D NULL,=0D - .domains_init =3D NULL,=0D - .console_putc =3D NULL,=0D - .console_getc =3D NULL,=0D - .console_init =3D NULL,=0D - .irqchip_init =3D NULL,=0D - .irqchip_exit =3D NULL,=0D - .ipi_send =3D NULL,=0D - .ipi_clear =3D NULL,=0D - .ipi_init =3D NULL,=0D - .ipi_exit =3D NULL,=0D - .get_tlbr_flush_limit =3D NULL,=0D - .timer_value =3D NULL,=0D - .timer_event_stop =3D NULL,=0D - .timer_event_start =3D NULL,=0D - .timer_init =3D NULL,=0D - .timer_exit =3D NULL,=0D - .system_reset_check =3D NULL,=0D - .system_reset =3D NULL,=0D -};=0D -=0D -struct sbi_platform platform =3D {=0D - .opensbi_version =3D OPENSBI_VERSION,=0D - .platform_version =3D SBI_PLATFORM_VERSION(0x0, 0x01),=0D - .name =3D "NULL Platform",=0D - .features =3D 0,=0D - .hart_count =3D 0,=0D - .hart_index2id =3D 0,=0D - .hart_stack_size =3D 0,=0D - .platform_ops_addr =3D 0,=0D -};=0D --=20 2.31.1