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.web10.2499.1571102500536645782 for ; Mon, 14 Oct 2019 18:21:40 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=019184da0c=abner.chang@hpe.com) Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9F1GLvN009541; Tue, 15 Oct 2019 01:21:38 GMT Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0b-002e3701.pphosted.com with ESMTP id 2vmkshxqqb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Oct 2019 01:21:38 +0000 Received: from G9W8456.americas.hpqcorp.net (g9w8456.houston.hp.com [16.216.161.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g9t5008.houston.hpe.com (Postfix) with ESMTPS id DDBDC59; Tue, 15 Oct 2019 01:21:37 +0000 (UTC) Received: from G2W6309.americas.hpqcorp.net (2002:10c5:4033::10c5:4033) by G9W8456.americas.hpqcorp.net (2002:10d8:a15f::10d8:a15f) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 15 Oct 2019 01:21:37 +0000 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (15.241.52.10) by G2W6309.americas.hpqcorp.net (16.197.64.51) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 15 Oct 2019 01:21:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ef5OeqtstuoxISmrU2hQG04DEHXL51zbCJhPDzVFkkonZuE+6QYfDCVB3FM69dphO6jx9aLJpeCaBCyFHLn3W+m6Kf7v34ojpLlfVY1q4O/2ew7cOt++hgTKCrz9iyhVbjYlGK29R9UfmRfKIgoe54XBA33rKpWG9CLgJAyiUBymPydK1dis22olnRb9qXHTuUJBzy7aEK4jcG3d9QsoQmSjdCVWB9Tp2PP7fOs7lS2+JFCE9W8cjIoR2UP9xNl4X/e83ppiX+XMTn8Gf5xumn75p+42drEx+TzlWNpoM4NEAEkGN1wGt8UVZcRDM4oIOIOqmZCSl/aAW7JDyZ/faw== 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=yRhtnLoVHiFGGMHV3Csn8G+wgOpNjMAv5w8/LdXQOFI=; b=EoU4jpplQIMDViCQgE7bKH/88cjlcocqR4jFsTmrNp9VwFMZJLKQr1kbRLQal8xitplqqh/xlNH5hItWFOwgzqnEL6DYsQW1NQMAMeZ3I2eTMyTjQ4dgvLuiw3zMCo31X9A9LvY3Ao6AD6WOLW5BUSFFOFX7p2XSwauwGEk7DZ5rTxhkpGnp+jvXeo5z2RSZPDBPMDeaBpnltAkL8L7ql+BaOnisKJ8wzYenv69LFl3lhkV9tAugG+EnYtfivuJ4ED63WwrdRxBotoSdL0UmUii5B4eFdij+QKvSC6XdaXqnrcoDSgS1eRf6/JQczU8jyrwit+HG06iKjN6H8VUolA== 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 CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM (10.169.12.151) by CS1PR8401MB1176.NAMPRD84.PROD.OUTLOOK.COM (10.169.97.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.21; Tue, 15 Oct 2019 01:21:35 +0000 Received: from CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM ([fe80::4fb:84b9:76e6:1cde]) by CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM ([fe80::4fb:84b9:76e6:1cde%8]) with mapi id 15.20.2347.023; Tue, 15 Oct 2019 01:21:35 +0000 From: "Abner Chang" To: Leif Lindholm , "devel@edk2.groups.io" Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 18/29] RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library. Thread-Topic: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 18/29] RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library. Thread-Index: AQHVcaqrAopEgu+j806OSyzANePGN6dEsO6AgBZZELA= Date: Tue, 15 Oct 2019 01:21:35 +0000 Message-ID: References: <1569198715-31552-1-git-send-email-abner.chang@hpe.com> <1569198715-31552-20-git-send-email-abner.chang@hpe.com> <20190930200331.GC25504@bivouac.eciton.net> In-Reply-To: <20190930200331.GC25504@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-correlation-id: 6e7b08ee-5d0e-45ef-21d9-08d7510e055c x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: CS1PR8401MB1176: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:173; x-forefront-prvs: 01917B1794 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(136003)(366004)(396003)(346002)(376002)(13464003)(199004)(189003)(486006)(33656002)(110136005)(76116006)(478600001)(66066001)(19627235002)(316002)(229853002)(256004)(966005)(86362001)(8936002)(14454004)(25786009)(8676002)(66446008)(64756008)(66556008)(476003)(66946007)(66476007)(71200400001)(71190400001)(81166006)(81156014)(2501003)(6246003)(7736002)(7696005)(76176011)(3846002)(53546011)(6506007)(6116002)(99286004)(305945005)(6436002)(2906002)(102836004)(186003)(26005)(6306002)(74316002)(9686003)(11346002)(55016002)(5660300002)(52536014)(446003);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR8401MB1176;H:CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: EfoQA+SDJS7pLHQQmCK9TWd27r1v8W9GoAWqWmhLRxyr85pHu2AgQ5dO54eAXS94XrwwvZcJeBzg0VHjgMpfVNoIfNK55Ex2ArX+VNd9H6A9l49kpboQRnGJ2S8QmHrMub+KneMAe9deC6Nf5hsylr0NlKLaV/e7b2uQIiN6IAH1mOpMqf/1myHxvtCHm5LKcxsBYpnJuJK7VX8USgzrv9OeYqMFKTs3q8IUHoI8JiAMeTdYEPVR3FgG8rr9PN3JhgR7xBaGtyUE6qR+SGKogox+pZ+1tjVhGM6fdMQKBlBY81z4Odhw34PIJvac1xnHU5FLUzNba06yNMpKtgSBByyDvg9+MW/f5gLKGzyKgVBs1rc41j9eRblLAYlMtbjA4d4aP3K9jtFDex3isaJ19Ko4lDu2ufb5/HnZeaDVFpzG0W6uWJIpSV9Yndf5WOOUdoi9UY2+/5ZfJdXNOmTRmg== x-ms-exchange-transport-forked: True X-MS-Exchange-CrossTenant-Network-Message-Id: 6e7b08ee-5d0e-45ef-21d9-08d7510e055c X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2019 01:21:35.6441 (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: bYX1fhKQdfVaufEJbO5U4YfdgjKjxUkgNyKTD895FDvYI0Sgw2pjjAg8S3UepH4nN63QWJyZyUJduqlwh1Ieaw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB1176 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,1.0.8 definitions=2019-10-14_12:2019-10-11,2019-10-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 phishscore=0 impostorscore=0 bulkscore=0 malwarescore=0 adultscore=0 suspectscore=0 spamscore=0 mlxlogscore=999 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910150010 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Leif Lindholm [mailto:leif.lindholm@linaro.org] > Sent: Tuesday, October 1, 2019 4:04 AM > To: devel@edk2.groups.io; Chang, Abner (HPS SW/FW Technologist) > > Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 18/29] > RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library. >=20 > On Mon, Sep 23, 2019 at 08:31:44AM +0800, Abner Chang wrote: > > EDK2 RISC-V OpenSBI library which pull in external source files under > > RiscVPkg/opensbi to the build process. > > > > Signed-off-by: Abner Chang > > --- > > .../Library/RiscVOpensbiLib/RiscVOpensbiLib.inf | 52 > ++++++++++++++++++++++ > > 1 file changed, 52 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..640ffba > > --- /dev/null > > +++ b/RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf > > @@ -0,0 +1,52 @@ > > +## @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 >=20 > Please move the opensbi directory to here instead. >=20 This is good. Now [Includes] in RiscVPkg.dec looks like this, [Includes] Library/RiscvOpensbiLib/opensbi Library/RiscvOpensbiLib/opensbi/include > / > Leif >=20 > > + ../../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] > > + MdePkg/MdePkg.dec > > + RiscVPkg/RiscVPkg.dec > > + > > +[LibraryClasses] > > + BaseLib > > + PcdLib > > + RiscVCpuLib > > + > > -- > > 2.7.4 > > > > > >=20 > >