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.web11.6500.1576735226851802494 for ; Wed, 18 Dec 2019 22:00:27 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=02562c19b1=abner.chang@hpe.com) Received: from pps.filterd (m0134425.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBJ5v50Q022454; Thu, 19 Dec 2019 06:00:25 GMT Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0b-002e3701.pphosted.com with ESMTP id 2wyqewmcna-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Dec 2019 06:00:25 +0000 Received: from G2W6311.americas.hpqcorp.net (g2w6311.austin.hp.com [16.197.64.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2352.austin.hpe.com (Postfix) with ESMTPS id 1BE52137; Thu, 19 Dec 2019 06:00:25 +0000 (UTC) Received: from G4W9331.americas.hpqcorp.net (16.208.32.117) by G2W6311.americas.hpqcorp.net (16.197.64.53) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 19 Dec 2019 06:00:18 +0000 Received: from G4W10205.americas.hpqcorp.net (2002:10cf:520f::10cf:520f) by G4W9331.americas.hpqcorp.net (2002:10d0:2075::10d0:2075) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 19 Dec 2019 06:00:18 +0000 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (15.241.52.10) by G4W10205.americas.hpqcorp.net (16.207.82.15) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 19 Dec 2019 06:00:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jCQRoqoH8Vw1c9+x2bTxhWrF02TNyfQoJ5e7MDCQNtGX31Gcb+NTYj+ycllk2/CndQrXzsUgR6RW4ka0ICRAYILiRQzF2Wgh5rIdJO6YvVIfIY2BTUUJw43w5+7G8oFuqkJoxFXLrYCVZmX2avPFKo78ztvWwJHz93aow6I3UouAhKQr/qFl/IWSfyKgQvSfXGZ0gmWP6R5jNEuSEbS1E4kpC1TD8Nf2PiJR+cHiyg1Y/AVhusx131mJYyO3Cfa/bYOWPat4MX2rp5iAZzJHMCYd3EM3Zr/lRH2nqzbHxCgqw/0f49ZaAzWrF5h+LO9SW69g3f9DG0bCTKwp9uULFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kXrSpZ0z9MDIDf+e/Wbeoc0xH4S9XrkJlWZh3uu/XLk=; b=DP7AAIEZKuXmecZwFBNHZFylEO6P5+agWqE6l2lKuTv49X7Qqoz0DsOfGDnGc5ZzogSoXmoRT3H66hDZfjRU++d+MWOi4gJcQkebWfEjw5uFA6Nsjy3Bc/F//c8Jg3Dusr2huMLBTpbkEfIKYM6e/gn3jovCKmwQhmmBBLUgNVt3h+cQ+a+51pPsDu0DowY8a8bYb9xya/U7KjKEb/fe4OkRPbwza9ZpeR+zW/Lla5raH7mjGO2s7PT5YDXwh57WrwiMhzhHkH6gY3sMgJE2cnp6vcKzRXdiN7LM0jNHRs0ld8aYsnVfsRGeQAIouTl2TaOricrMyTVjx0gwGTTcDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from TU4PR8401MB1165.NAMPRD84.PROD.OUTLOOK.COM (10.169.48.139) by TU4PR8401MB1070.NAMPRD84.PROD.OUTLOOK.COM (10.169.47.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14; Thu, 19 Dec 2019 06:00:17 +0000 Received: from TU4PR8401MB1165.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c89b:33c0:a706:374c]) by TU4PR8401MB1165.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c89b:33c0:a706:374c%4]) with mapi id 15.20.2559.015; Thu, 19 Dec 2019 06:00:17 +0000 From: "Abner Chang" To: "devel@edk2.groups.io" , "leif.lindholm@linaro.org" CC: "Chen, Gilbert" Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v3 18/39] RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library. Thread-Topic: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v3 18/39] RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library. Thread-Index: AQHVjTffEXl3EyP0q0SEO00IMHoDJKeV/JQAgCtMEOA= Date: Thu, 19 Dec 2019 06:00:17 +0000 Message-ID: References: <1572227957-13169-1-git-send-email-abner.chang@hpe.com> <1572227957-13169-19-git-send-email-abner.chang@hpe.com> <20191121164832.GL7359@bivouac.eciton.net> In-Reply-To: <20191121164832.GL7359@bivouac.eciton.net> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [16.242.247.131] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ed18ffd7-4247-46dd-9084-08d78448b91c x-ms-traffictypediagnostic: TU4PR8401MB1070: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:185; x-forefront-prvs: 0256C18696 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(396003)(376002)(136003)(39860400002)(189003)(199004)(13464003)(9686003)(55016002)(110136005)(71200400001)(26005)(316002)(2906002)(86362001)(966005)(5660300002)(6506007)(33656002)(8936002)(8676002)(53546011)(81166006)(52536014)(7696005)(81156014)(4326008)(66556008)(19627235002)(66476007)(64756008)(66446008)(478600001)(66946007)(76116006)(186003);DIR:OUT;SFP:1102;SCL:1;SRVR:TU4PR8401MB1070;H:TU4PR8401MB1165.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nFAxJ0OYpUJWNsp2IH+A7TTFthS9pkrV+w/AYcQ+uiO7vGNRqutMSwQOWs2wGTuMuQSlm59y613lUxxA07AD5uOGAtXehFapBmiPrNPYuOS5dwOCi2pZ1SD8ghwiHw5h22j0LSS/4Z1BEmxTiDfcp8FoYurBJjUuXqvSvx4FBi/0GWtcf2NIC/5bPNKyCiNDxZwc2CnwxHQ96Ioi2zN1re4HCjSd7cgFUkbHtQqJEI0ngo87N2WgUemsZF58yCeZcpAm9+MGDZdCsHQ9w6urCaoobeI6pvd5CMeWNNFh4c1NMFgO4dCp5Yi3lmXowp1rVOb8DYqi3RDWekHBVkyGySX5ddQkK7oDxMd1Mn4MjR88S0LlVA7MxrTSCc2gPt4vtfLsaOUjvzFS6R1RnNgVN20xdfb9Sa0Q8YPQ7FQCW+B7ZGfPI8O/kHIYD1OSLdv/iOd+Z0CqfGr6pCOZnFv43HWtAjEE388UE/3Q1/ynl4Ie+MJ1jkDIZzPEGjvnb+Tu7BleCvZLt6bfLL28P1VMk4qAYQox/BUoedyX29ubyGE= X-MS-Exchange-CrossTenant-Network-Message-Id: ed18ffd7-4247-46dd-9084-08d78448b91c X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2019 06:00:17.3293 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RiqbZRt6m1o3QngHv2oiYvfZR5ZBe7irC56lLc40YPhrnXhqjRNvICUgPpldXJTFbb/hAT2Ahi2TiroU/bU1Fw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TU4PR8401MB1070 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-18_08:2019-12-17,2019-12-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912190048 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Leif Lindholm > Sent: Friday, November 22, 2019 12:49 AM > To: devel@edk2.groups.io; Chang, Abner (HPS SW/FW Technologist) > > Cc: Chen, Gilbert > Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v3 18/39] > RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library. >=20 > On Mon, Oct 28, 2019 at 09:58:56 +0800, Abner Chang wrote: > > EDK2 RISC-V OpenSBI library which pull in external source files under > > RiscVPkg/Library/RiscVOpensbiLib/opensbi to the build process. > > > > Signed-off-by: Abner Chang > > >=20 > Could this be reordered to appear immediately after the Sbi wrapper > headers are added (or even squashed with it)? Yes. will see if I can squash it. >=20 > / > Leif >=20 > > Cc: Leif Lindholm > > Cc: Gilbert Chen > > --- > > .../Library/RiscVOpensbiLib/RiscVOpensbiLib.inf | 53 > ++++++++++++++++++++++ > > 1 file changed, 53 insertions(+) > > create mode 100644 > > RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf > > > > diff --git a/RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf > > b/RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf > > new file mode 100644 > > index 0000000..3e7f0fb > > --- /dev/null > > +++ b/RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf > > @@ -0,0 +1,53 @@ > > +## @file > > +# RISC-V Opensbi Library Instance. > > +# > > +# Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All > > +rights reserved.
# # SPDX-License-Identifier: > > +BSD-2-Clause-Patent # ## > > + > > +[Defines] > > + INF_VERSION =3D 0x0001001b > > + BASE_NAME =3D RiscVOpensbiLib > > + FILE_GUID =3D 6EF0C812-66F6-11E9-93CE-3F5D5F0DF0A7 > > + MODULE_TYPE =3D BASE > > + VERSION_STRING =3D 1.0 > > + LIBRARY_CLASS =3D RiscVOpensbiLib > > + > > +[Sources] > > + opensbi/lib/sbi/riscv_asm.c > > + opensbi/lib/sbi/riscv_atomic.c > > + opensbi/lib/sbi/riscv_hardfp.S > > + opensbi/lib/sbi/riscv_locks.c > > + opensbi/lib/sbi/riscv_unpriv.c > > + opensbi/lib/sbi/sbi_console.c > > + opensbi/lib/sbi/sbi_ecall.c > > + opensbi/lib/sbi/sbi_emulate_csr.c > > + opensbi/lib/sbi/sbi_fifo.c > > + opensbi/lib/sbi/sbi_hart.c > > + opensbi/lib/sbi/sbi_illegal_insn.c > > + opensbi/lib/sbi/sbi_init.c > > + opensbi/lib/sbi/sbi_ipi.c > > + opensbi/lib/sbi/sbi_misaligned_ldst.c > > + opensbi/lib/sbi/sbi_scratch.c > > + opensbi/lib/sbi/sbi_string.c > > + opensbi/lib/sbi/sbi_system.c > > + opensbi/lib/sbi/sbi_timer.c > > + opensbi/lib/sbi/sbi_tlb.c > > + opensbi/lib/sbi/sbi_trap.c > > + opensbi/lib/utils/sys/clint.c > > + opensbi/lib/utils/irqchip/plic.c > > + opensbi/lib/utils/serial/sifive-uart.c > > + opensbi/lib/utils/serial/uart8250.c > > + > > +[Packages] > > + EmbeddedPkg/EmbeddedPkg.dec # For libfdt. > > + MdePkg/MdePkg.dec > > + RiscVPkg/RiscVPkg.dec > > + > > +[LibraryClasses] > > + BaseLib > > + PcdLib > > + RiscVCpuLib > > + > > -- > > 2.7.4 > > > > > > > > >=20 >=20