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.web11.7586.1614232045314618124 for ; Wed, 24 Feb 2021 21:47:25 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Nw6S4693; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0690489a7f=abner.chang@hpe.com) Received: from pps.filterd (m0148663.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11P5heZB011632; Thu, 25 Feb 2021 05:47:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=9q0hPulPi/7uGUSRApJOv45E43k4Fi5Pzp2wzITuXJ4=; b=Nw6S4693HegW2TeEl0b4J5io4jktwoZBXStJNvNB+iNi67ao/kreOLziRBpzvKzPOubT hEjyanTZ24Wsr0lEKwzlLrVwZeM+6MuHDdKGBlX22iRPTsVSZ4DgcFk9oyLcho6++EVf uwZohvaivQALJf6ITdhdp7r/ebJ4ERp50vdlCx0oH4c2De5+y2xRcm9vJvnrRUSqmsXm +Pi1g0ZnyZMhPz1oEsIusTtpqyT+EPkJe1Xylo1Wvz2hSryo4FnrpizL7nSWT16mtR0t k3LUBhNbtropI4tjP91kZzCs2wGnQassh4jn18z2CtYwcas1JIX9BFk13Gjxkf2Y3TmJ Sg== Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0a-002e3701.pphosted.com with ESMTP id 36vyun0nu9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Feb 2021 05:47:10 +0000 Received: from G4W10204.americas.hpqcorp.net (g4w10204.houston.hpecorp.net [16.207.82.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2354.austin.hpe.com (Postfix) with ESMTPS id BFA88AC; Thu, 25 Feb 2021 05:47:08 +0000 (UTC) Received: from G9W9210.americas.hpqcorp.net (2002:10dc:429b::10dc:429b) by G4W10204.americas.hpqcorp.net (2002:10cf:5210::10cf:5210) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 25 Feb 2021 05:47:08 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (15.241.52.10) by G9W9210.americas.hpqcorp.net (16.220.66.155) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 25 Feb 2021 05:47:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QT/V4TnwddWBMrp+yve54iATsfr42SbnxHKmJzGvkDJqEPPg8Z29S0QanTjnsKQ/Zl9rnLfhv6YiLhVGStBm2xEH3S+35+b5JT1FwJR/8VJR0EogiUY+2oJkR8ZRRUezGJNo8siFxyZiE5S8MZoXNsxxxvhrWdE7HVJ30KcgiDpagOzE/n6VPuC/1+Za8yM73ybM214vVSWxs5CDYJzX1rdYc/icXDKJ6gEjWYzskjzmMdIpw7VHl5Twlu4out1Wc+RPQFEOciUdx9LKyd1LNr1jM3hkHOUx1pduS0hu4bpCRjSg95REas+WhjXUsGpOntXMDxJ6MIqc9wolkTFqVg== 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=RJnqQAu7/kqEtEG90bUvjreczy1DCCmbqrBLhpruGq8=; b=bDveHdyjSliWkWmu/9YuV93YzI0v/4o/fmK/C4H5hvug4es4/AiLpkfVP0uipDOn2iXoLD7zJ51NqAiEW1NZF8E92SoRpyk1SsZYe0TDZu48xaEFD6LPVBog9AiBvZCSUDFGxWTHZ2fDrDpfo/vy3ZdFGOHIb3mMBQkkaAypqj7JnIkmILwMEw0AgnLOMjBtiktK5u6v4lgrgviN7HDmJ9BaTPWa4AzrqXhyONbjuko52SjTq2fsXXEMrk2cFAiztSjL02N0CaLdViSSWvD64IrwVNZJ/zsv2UfdWDYzJL2IpA+aOtciFHI5h2cJIIdkVsgqY2c4MkVqgHiOXU1p8g== 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 CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7508::16) by CS1PR8401MB0712.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:750e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.28; Thu, 25 Feb 2021 05:47:06 +0000 Received: from CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::adb6:a875:93ca:b54a]) by CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::adb6:a875:93ca:b54a%12]) with mapi id 15.20.3890.020; Thu, 25 Feb 2021 05:47:06 +0000 From: "Abner Chang" To: "Schaefer, Daniel" , "devel@edk2.groups.io" CC: G Edhaya Chandran , Barton Gao , Samer El-Haj-Mahmoud , Eric Jin , Arvin Chen , "Leif Lindholm" , Heinrich Schuchardt Subject: Re: [edk2-test PATCHv2 3/5] SctPkg: Add RISCV64 build support Thread-Topic: [edk2-test PATCHv2 3/5] SctPkg: Add RISCV64 build support Thread-Index: AQHW/vpvfoYgkAqopUC0b2W7Erc6K6poSmyw Date: Thu, 25 Feb 2021 05:47:06 +0000 Message-ID: References: <20210209154354.30234-1-daniel.schaefer@hpe.com> <20210209154354.30234-4-daniel.schaefer@hpe.com> In-Reply-To: <20210209154354.30234-4-daniel.schaefer@hpe.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: hpe.com; dkim=none (message not signed) header.d=none;hpe.com; dmarc=none action=none header.from=hpe.com; x-originating-ip: [16.242.247.131] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2e85f808-83e7-4d09-76b5-08d8d950c8ca x-ms-traffictypediagnostic: CS1PR8401MB0712: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: V3oRQ0yVqdCokZdX7HRYatymSwo+JoWgoRqX4YPcsTBHGMdkwLJ1z1f+e6WetAplWn0AdwJyBPBoaD9xjFhJzhQ/gthy8z8p7wrBVEr8+zKlZgC2g7tej/+vVmNJK4Lch/QaUCcyBM3FCbcsTGKZEGpZrgv0ilJpxaccx/EzkfvXfjZ1XJ9N/maruKZ8OipOKH4uw3LrQCet03b3RrtiOhGk29QvSUgOYmi+fiGgV4pyE/dWY4ybWPlw/P/AA2WlEHshd1xqmAEQw5uHUuGoXs+PF3IU1a6LspPjAbQy6aAvaueIAPwatNnyGerYFeJIbQhwBvKyN4IhDVK4xbpGGUYWHLMRaLg1lgDSM8+AsyjWlTL212hOYi9acYclsP/kAZpynX1l46ayOGbAxxsGgEgjBPev01/0bEAveXJw3yT8y1CY3HGC7HVesLgykElq7CCs6j9C1TXb1604ThsKuifwV2yy+9GoezpBb2TDNSB+m4euax1Xur80Qt19Q2nBKe4eXRRqOIZ5R+e7MUu16yUUyIWHbSc3RTYXt55/Jjrd7sZsrVOgANJyRUTc5Wnh+qd86mpaVLb+T066PZ+takUs87qzfkQbgZpP7iGWVcA= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(376002)(346002)(136003)(39860400002)(366004)(396003)(86362001)(19627235002)(33656002)(83380400001)(2906002)(9686003)(4326008)(55016002)(8676002)(76116006)(8936002)(66946007)(316002)(110136005)(71200400001)(478600001)(7696005)(26005)(52536014)(54906003)(6506007)(186003)(64756008)(66556008)(53546011)(66476007)(30864003)(66446008)(5660300002)(579004);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?+xrcp307wFFMgGi2D2omW3k0FmLKt0RmweuTYftPdWwsBiYp/0FRlrdTdU+4?= =?us-ascii?Q?Xt3g0h4zzivs8+/ONJ/mp435jFluUiWySD8tnfEKiCmE1lmAEN2pF+1svOsJ?= =?us-ascii?Q?Kt1yDqIHPeSJKaPaVXi+esEtV3VIy6nKsOEGRKSeiIZqo6+q5yhCOhkfTX+g?= =?us-ascii?Q?K/0Ykx+hZ6BN4NhT68QEIB7KnlqwGsA3ToLVakaHksU9l+jb1C30SfesbJT6?= =?us-ascii?Q?rAiSuQzsCrLLAXz7zr8IXC7KCIp6vdsUpv+oCp2ERZGoHWHJGADBL97QxeQM?= =?us-ascii?Q?0xBo6vYdheFyAQPy5rYzeiZ+zM+05ge0+43IJBDZWnC2hYMjhKNqIG2Z4bje?= =?us-ascii?Q?Ms2GBdslqmlSjjtScKWGLxaEuUgTd8xhmCvsfx0MAYDs4eC5mtihRIpZ3SMC?= =?us-ascii?Q?g5XHuh5+5FtD0ey/aPTaAVqspk34QKrlxKwW7ZU1q36qk2iNHM/SobKrHbwX?= =?us-ascii?Q?0+gesGO9uaHgIUZWd2l0aZevRwkD9l6nQCMntgG6CbYnPCrv/Dn7NhvFMW2F?= =?us-ascii?Q?XnHPUrFhyMFnnT4TBM9l2hg7D8iDmp7yma2K31WEIcBVf0MEhGWqhs7wHgKs?= =?us-ascii?Q?NW3WBvATmHT888UQm3Osf3F3vl+vnKzlnI5tk7rl8RC6g7UVOfOUV/r7ekfi?= =?us-ascii?Q?xYYGeoeimteCubP6UHJNRpKkQlbAJw5Bw4i/vmP1cSSPSVX3fF/3Bkipz44f?= =?us-ascii?Q?uHeasY7WiNErZYxN2k9VP31rNEmtNvDq7wEo22oDUd/BDxI5dOvB8N9Nafs0?= =?us-ascii?Q?180xbfwTI7vqoYuavhrM+Dr/aykd/TGBwhZNliLtIQ8aTnT0fUZ3P+R4ZrCC?= =?us-ascii?Q?hSjwQxODoJgmRnn7tGCkG7JE+PTRYSzdhSGCf7i3pn8SlKZlZywCmHQ81R3u?= =?us-ascii?Q?S4fpWLV4Rqm1I/PvUpEpaf9M46+VPyYDkt74X+uSTEL/VqQGF5FioT0oq3Fl?= =?us-ascii?Q?iVh0zCcuL5Dmu6wSFdVsUfrPcp/hIhc4JD5BSN8A2X1zFd59y5WnHbA880hg?= =?us-ascii?Q?t0n6t/AlJDtyzEIkgXokxiRN3hfe/ZoNmemeBGaytFmhj6yPAc2uR3a3VwEU?= =?us-ascii?Q?4+ULhT8vrlbezHTV3BCOxBKrbs3BR0tNcYVlWsp3A1Omf1tDwXTU5QkAixrK?= =?us-ascii?Q?z5uP9sO2x1fktyihsAotKunxdET6PEZU09VYacwwcFzHyrk7jLsL53qxpbno?= =?us-ascii?Q?0Fg81OkrMzHSqLUfXn6vNMPUlQiZ2BdkWnw6jTKtQK18MEaQGpo+Q1ec26Ci?= =?us-ascii?Q?W9JN1F7epAoUpShYaPqHq7V7Bt6thyGY2W1j+54MuEATGV6Lt56h360+/Ary?= =?us-ascii?Q?bB6gjd2mjSZp+YDjnB9i5vQi?= X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 2e85f808-83e7-4d09-76b5-08d8d950c8ca X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2021 05:47:06.1218 (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: 5HM5YQNe8mxSw1MofgGMN55UNXXXh9/Ql1C7AmKafJ9RRmBqwRYjx3W2VfWJPVT+banXdqfTWrzSanoj3YNZAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0712 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.369,18.0.761 definitions=2021-02-25_01:2021-02-24,2021-02-25 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 malwarescore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102250049 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Abner Chang > -----Original Message----- > From: Schaefer, Daniel > Sent: Tuesday, February 9, 2021 11:44 PM > To: devel@edk2.groups.io > Cc: G Edhaya Chandran ; Barton Gao > ; Samer El-Haj-Mahmoud Mahmoud@arm.com>; Eric Jin ; Arvin Chen > ; Leif Lindholm ; Heinrich > Schuchardt ; Chang, Abner (HPS SW/FW Technologist) > > Subject: [edk2-test PATCHv2 3/5] SctPkg: Add RISCV64 build support >=20 > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3042 >=20 > Cc: G Edhaya Chandran > Cc: Barton Gao > Cc: Samer El-Haj-Mahmoud > Cc: Eric Jin > Cc: Arvin Chen > Cc: Leif Lindholm > Cc: Heinrich Schuchardt > Cc: Abner Chang > Signed-off-by: Daniel Schaefer > --- > uefi-sct/SctPkg/Application/InstallSct/InstallSctDef.h = | 4 > ++ > uefi-sct/SctPkg/Library/SctLib/SctLib.inf = | 6 ++ > uefi-sct/SctPkg/SCRT/SCRTApp/SCRTApp.inf = | 5 ++ > uefi-sct/SctPkg/SCRT/SCRTDriver/SCRTDriver.inf = | 6 > ++ > uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/Debug > SupportBBTest.inf | 6 ++ > uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/Usb2Hc/BlackBoxTest/Usb2HcTest.in > f | 4 ++ > uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/UsbHc/BlackBoxTest/UsbHcTest.inf > | 4 ++ > uefi-sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf > | 5 ++ > uefi-sct/SctPkg/Tools/Source/GenBin/GNUmakefile = | > 4 ++ > uefi-sct/SctPkg/UEFI/IHV_SCT.dsc = | 17 +++++- > uefi-sct/SctPkg/UEFI/Protocol/DebugSupport.h = | 61 > +++++++++++++++++++- > uefi-sct/SctPkg/UEFI/UEFI_SCT.dsc = | 18 +++++- > uefi-sct/SctPkg/build.sh = | 11 +++- > 13 files changed, 144 insertions(+), 7 deletions(-) >=20 > diff --git a/uefi-sct/SctPkg/Application/InstallSct/InstallSctDef.h b/uef= i- > sct/SctPkg/Application/InstallSct/InstallSctDef.h > index a7815580..02f0283e 100644 > --- a/uefi-sct/SctPkg/Application/InstallSct/InstallSctDef.h > +++ b/uefi-sct/SctPkg/Application/InstallSct/InstallSctDef.h > @@ -3,6 +3,7 @@ > Copyright 2006 - 2017 Unified EFI, Inc.
Copyright (c) 2010 - 201= 7, Intel > Corporation. All rights reserved.
Portions copyright (c) 2014, ARM = Ltd. > All rights reserved.
+ (C) Copyright 2021 Hewlett Packard Enterprise > Development LP
This program and the accompanying materials are > licensed and made available under the terms and conditions of the BSD > License@@ -32,6 +33,9 @@ > #elif defined(EFIAARCH64) #define > INSTALL_SCT_PLATFORM_SHORT_NAME L"aarch64" #define > INSTALL_SCT_PLATFORM_NAME L"AARCH64"+#elif > defined(EFIRISCV64)+ #define INSTALL_SCT_PLATFORM_SHORT_NAME > L"riscv64"+ #define INSTALL_SCT_PLATFORM_NAME L"RISCV64" #else > #error "Architecture not supported" #endifdiff --git a/uefi- > sct/SctPkg/Library/SctLib/SctLib.inf b/uefi-sct/SctPkg/Library/SctLib/Sct= Lib.inf > index 23cb77fb..7527b203 100644 > --- a/uefi-sct/SctPkg/Library/SctLib/SctLib.inf > +++ b/uefi-sct/SctPkg/Library/SctLib/SctLib.inf > @@ -3,6 +3,7 @@ > # Copyright 2006 - 2016 Unified EFI, Inc.
# Copyright (c) 2013 - 2= 014, > ARM Ltd. All rights reserved.
# Copyright (c) 2014 - 2019, Intel > Corporation. All rights reserved.
+# (C) Copyright 2021 Hewlett Packa= rd > Enterprise Development LP
# # This program and the accompanying > materials # are licensed and made available under the terms and conditio= ns > of the BSD License@@ -62,6 +63,11 @@ > Aarch64/initplat.c Math.c +[sources.RISCV64]+ Riscv64/SctLibPlat.h+ > Riscv64/initplat.c+ Math.c+ [sources.ia32] ia32/SctLibPlat.h > ia32/initplat.cdiff --git a/uefi-sct/SctPkg/SCRT/SCRTApp/SCRTApp.inf b/ue= fi- > sct/SctPkg/SCRT/SCRTApp/SCRTApp.inf > index 7aca6e30..8104a4ef 100644 > --- a/uefi-sct/SctPkg/SCRT/SCRTApp/SCRTApp.inf > +++ b/uefi-sct/SctPkg/SCRT/SCRTApp/SCRTApp.inf > @@ -2,6 +2,7 @@ > # # Copyright 2006 - 2016 Unified EFI, Inc.
# Copyright (c) 2010 -= 2016, > Intel Corporation. All rights reserved.
+# (C) Copyright 2021 Hewlett > Packard Enterprise Development LP
# # This program and the > accompanying materials # are licensed and made available under the terms > and conditions of the BSD License@@ -39,6 +40,10 @@ > Aarch64/GoVirtual.asm | RVCT Aarch64/GoVirtual.S | GCC > +[sources.RISCV64]+ Riscv64/VirtualMemory.c+ Riscv64/GoVirtual.S | GCC+ > [sources.ia32] ia32/VirtualMemory.c ia32/GoVirtual.asm | MSFTdiff --g= it > a/uefi-sct/SctPkg/SCRT/SCRTDriver/SCRTDriver.inf b/uefi- > sct/SctPkg/SCRT/SCRTDriver/SCRTDriver.inf > index ad0eb0f8..a3ef454e 100644 > --- a/uefi-sct/SctPkg/SCRT/SCRTDriver/SCRTDriver.inf > +++ b/uefi-sct/SctPkg/SCRT/SCRTDriver/SCRTDriver.inf > @@ -2,6 +2,7 @@ > # # Copyright 2006 - 2016 Unified EFI, Inc.
# Copyright (c) 2010 -= 2016, > Intel Corporation. All rights reserved.
+# (C) Copyright 2021 Hewlett > Packard Enterprise Development LP
# # This program and the > accompanying materials # are licensed and made available under the terms > and conditions of the BSD License@@ -69,6 +70,11 @@ > Aarch64/Dump.c Aarch64/Debug.c +[sources.RISCV64]+ Riscv64/Io.c+ > Riscv64/Dump.c+ Riscv64/Debug.c+ [sources.common] Guid.h Guid.cdiff = -- > git a/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/Debug > SupportBBTest.inf b/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/Debug > SupportBBTest.inf > index 799f86fd..03bf7ccf 100644 > --- a/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTest/Debug > SupportBBTest.inf > +++ b/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/DebugSupport/BlackBoxTe > +++ st/DebugSupportBBTest.inf > @@ -3,6 +3,7 @@ > # Copyright 2006 - 2012 Unified EFI, Inc.
# Copyright (c) 2010 - 2= 012, > Intel Corporation. All rights reserved.
# Copyright (c) 2019, ARM Lt= d. All > rights reserved.
+# (C) Copyright 2021 Hewlett Packard Enterprise > Development LP
# # This program and the accompanying materials # > are licensed and made available under the terms and conditions of the BSD > License@@ -67,6 +68,11 @@ > Aarch64/DebugSupportBBTestExceptionCallbackFunction.c > Aarch64/DebugSupportBBTestCacheFunction.c +[sources.RISCV64]+ > Riscv64/PlatformIsa.c+ > Riscv64/DebugSupportBBTestExceptionCallbackFunction.c+ > Riscv64/DebugSupportBBTestCacheFunction.c+ [Packages] > SctPkg/SctPkg.dec SctPkg/UEFI/UEFI.decdiff --git a/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/Usb2Hc/BlackBoxTest/Usb2HcTest.in > f b/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/Usb2Hc/BlackBoxTest/Usb2HcTest.in > f > index e8118739..95ae593e 100644 > --- a/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/Usb2Hc/BlackBoxTest/Usb2HcTest.in > f > +++ b/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/Usb2Hc/BlackBoxTest/Usb > +++ 2HcTest.inf > @@ -2,6 +2,7 @@ > # # Copyright 2006 - 2016 Unified EFI, Inc.
# Copyright (c) 2010 -= 2016, > Intel Corporation. All rights reserved.
+# (C) Copyright 2021 Hewlett > Packard Enterprise Development LP
# # This program and the > accompanying materials # are licensed and made available under the terms > and conditions of the BSD License@@ -55,6 +56,9 @@ > #[sources.Aarch64] # IPF/TimerInterrupt.c +#[sources.Riscv64]+# > IPF/TimerInterrupt.c+ [Packages] MdePkg/MdePkg.dec > SctPkg/SctPkg.decdiff --git a/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/UsbHc/BlackBoxTest/UsbHcTest.inf > b/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/UsbHc/BlackBoxTest/UsbHcTest.inf > index efc438c1..d3bcd5ce 100644 > --- a/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/UsbHc/BlackBoxTest/UsbHcTest.inf > +++ b/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/UsbHc/BlackBoxTest/UsbH > +++ cTest.inf > @@ -2,6 +2,7 @@ > # # Copyright 2006 - 2012 Unified EFI, Inc.
# Copyright (c) 2010 -= 2012, > Intel Corporation. All rights reserved.
+# (C) Copyright 2021 Hewlett > Packard Enterprise Development LP
# # This program and the > accompanying materials # are licensed and made available under the terms > and conditions of the BSD License@@ -55,6 +56,9 @@ > [sources.Aarch64] Aarch64/TimerInterrupt.c +[sources.RISCV64]+ > Riscv64/TimerInterrupt.c+ [Packages] MdePkg/MdePkg.dec > SctPkg/SctPkg.decdiff --git a/uefi- > sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf > b/uefi- > sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf > index 23f12d1a..b60e90b2 100644 > --- a/uefi- > sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf > +++ b/uefi- > sct/SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsL > +++ ib.inf > @@ -3,6 +3,7 @@ > # Copyright 2006 - 2012 Unified EFI, Inc.
# Copyright (c) 2010 - 2= 012, > Intel Corporation. All rights reserved.
# Copyright (c) 2019, ARM Lt= d. All > rights reserved.
+# (C) Copyright 2021 Hewlett Packard Enterprise > Development LP
# # This program and the accompanying materials # > are licensed and made available under the terms and conditions of the BSD > License@@ -66,6 +67,10 @@ > Aarch64/EntsLibPlat.h Aarch64/InitPlat.c +[sources.RISCV64]+ > Riscv64/EntsLibPlat.h+ Riscv64/InitPlat.c+ [Packages] MdePkg/MdePkg.dec > SctPkg/SctPkg.decdiff --git a/uefi- > sct/SctPkg/Tools/Source/GenBin/GNUmakefile b/uefi- > sct/SctPkg/Tools/Source/GenBin/GNUmakefile > index c235f313..c492d441 100644 > --- a/uefi-sct/SctPkg/Tools/Source/GenBin/GNUmakefile > +++ b/uefi-sct/SctPkg/Tools/Source/GenBin/GNUmakefile > @@ -1,6 +1,7 @@ > # # Copyright 2006 - 2010 Unified EFI, Inc.
# Copyright (c) 2010 I= ntel > Corporation. All rights reserved.
+# (C) Copyright 2021 Hewlett Packa= rd > Enterprise Development LP
# # This program and the accompanying > materials # are licensed and made available under the terms and conditio= ns > of the BSD License@@ -31,6 +32,9 @@ ifndef ARCH > ifneq (,$(findstring arm,$(uname_m))) ARCH=3DARM endif+ ifneq > (,$(findstring riscv64,$(uname_m)))+ ARCH=3DRISCV64+ endif ifndef A= RCH > $(info Could not detected ARCH from uname results) $(error ARCH is not > defined!)diff --git a/uefi-sct/SctPkg/UEFI/IHV_SCT.dsc b/uefi- > sct/SctPkg/UEFI/IHV_SCT.dsc > index f9e86264..94bb5c36 100644 > --- a/uefi-sct/SctPkg/UEFI/IHV_SCT.dsc > +++ b/uefi-sct/SctPkg/UEFI/IHV_SCT.dsc > @@ -3,6 +3,7 @@ > # Copyright 2006 - 2016 Unified EFI, Inc.
# Copyright (c) 2010 - 2= 016, > Intel Corporation. All rights reserved.
# Copyright (c) 2019,Microch= ip > Technology Inc.
+# (C) Copyright 2021 Hewlett Packard Enterprise > Development LP
# # This program and the accompanying materials # > are licensed and made available under the terms and conditions of the BSD > License@@ -42,7 +43,7 @@ > PLATFORM_VERSION =3D 0.1 DSC_SPECIFICATION = =3D > 0x00010005 OUTPUT_DIRECTORY =3D Build/IhvSct- > SUPPORTED_ARCHITECTURES =3D IA32|X64|ARM|AARCH64+ > SUPPORTED_ARCHITECTURES =3D IA32|X64|ARM|AARCH64|RISCV64 > BUILD_TARGETS =3D DEBUG|RELEASE SKUID_IDENTIFIER = =3D > DEFAULT @@ -109,6 +110,12 @@ > *_*_AARCH64_PP_FLAGS =3D -D EFIAARCH64 $(GCC_VER_MACRO) > RVCT:*_*_AARCH64_DLINK_FLAGS =3D --muldefweak + > *_*_RISCV64_CC_FLAGS =3D -D EFIRISCV64 $(GCC_VER_MACRO)+ > GCC:*_*_RISCV64_CC_FLAGS =3D -D EFIRISCV64 $(GCC_VER_MACRO) - > ffreestanding -nostdinc -nostdlib -Wno-error=3Dunused-function -Wno- > error=3Dunused-but-set-variable -Wno-error+ *_*_RISCV64_VFRPP_FLAGS > =3D -D EFIRISCV64 $(GCC_VER_MACRO)+ *_*_RISCV64_APP_FLAGS =3D -D > EFIRISCV64 $(GCC_VER_MACRO)+ *_*_RISCV64_PP_FLAGS =3D -D > EFIRISCV64 $(GCC_VER_MACRO)+ DEBUG_*_*_CC_FLAGS =3D -DEFI_DEBUG > RELEASE_*_*_CC_FLAGS =3D -DMDEPKG_NDEBUG @@ -124,6 +131,9 @@ > [Libraries.AARCH64] > ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > +[Libraries.RISCV64]+ > ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf+ > [Libraries.IA32,Libraries.X64] [LibraryClasses.common]@@ -146,6 +156,9 @@ > [LibraryClasses.AARCH64] > NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > +[LibraryClasses.RISCV64]+ > NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf+ > [LibraryClasses.IA32] > ########################################################## > #####################@@ -228,4 +241,4 @@ > SctPkg/TestInfrastructure/SCT/Framework/Sct.inf > [Components.IA32, Components.X64] > SctPkg/TestCase/UEFI/IHV/Protocol/PlatformDriverOverride/BlackBoxTest/I > hvPlatformDriverOverrideBBTest.inf- > SctPkg/TestCase/UEFI/IHV/Protocol/PlatformToDriverConfiguration/BlackBo > xTest/IhvPlatformToDriverConfigurationBBTest.inf > \ No newline at end of file > +SctPkg/TestCase/UEFI/IHV/Protocol/PlatformToDriverConfiguration/BlackB > o > +xTest/IhvPlatformToDriverConfigurationBBTest.inf > diff --git a/uefi-sct/SctPkg/UEFI/Protocol/DebugSupport.h b/uefi- > sct/SctPkg/UEFI/Protocol/DebugSupport.h > index 7fba87ae..1963d619 100644 > --- a/uefi-sct/SctPkg/UEFI/Protocol/DebugSupport.h > +++ b/uefi-sct/SctPkg/UEFI/Protocol/DebugSupport.h > @@ -2,6 +2,7 @@ > Copyright 2006 - 2016 Unified EFI, Inc.
Copyright (c) 2010 - 20= 16, Intel > Corporation. All rights reserved.
+ (C) Copyright 2021 Hewlett Pac= kard > Enterprise Development LP
This program and the accompanying > materials are licensed and made available under the terms and condition= s of > the BSD License@@ -607,6 +608,60 @@ typedef struct { > UINT64 FAR; // Fault Address Register } EFI_SYSTEM_CONTEXT_AARCH64; > +///+/// RISC-V processor exception types.+///+#define > EXCEPT_RISCV_INST_MISALIGNED 0+#define > EXCEPT_RISCV_INST_ACCESS_FAULT 1+#define > EXCEPT_RISCV_ILLEGAL_INST 2+#define > EXCEPT_RISCV_BREAKPOINT 3+#define > EXCEPT_RISCV_LOAD_ADDRESS_MISALIGNED 4+#define > EXCEPT_RISCV_LOAD_ACCESS_FAULT 5+#define > EXCEPT_RISCV_STORE_AMO_ADDRESS_MISALIGNED 6+#define > EXCEPT_RISCV_STORE_AMO_ACCESS_FAULT 7+#define > EXCEPT_RISCV_ENV_CALL_FROM_UMODE 8+#define > EXCEPT_RISCV_ENV_CALL_FROM_SMODE 9+#define > EXCEPT_RISCV_ENV_CALL_FROM_HMODE 10+#define > EXCEPT_RISCV_ENV_CALL_FROM_MMODE 11++#define > EXCEPT_RISCV_SOFTWARE_INT 0x0+#define EXCEPT_RISCV_TIMER_INT > 0x1++typedef struct {+ UINT64 X0;+ UINT64 X1;+ UINT64 X2;+ UINT64 > X3;+ UINT64 X4;+ UINT64 X5;+ UINT64 X6;+ UINT64 X7;+ UINT64 X8;+ > UINT64 X9;+ UINT64 X10;+ UINT64 X11;+ UINT64 X12;+ UINT64 X13;+ > UINT64 X14;+ UINT64 X15;+ UINT64 X16;+ UINT64 X17;+ UINT64 X18;+ > UINT64 X19;+ UINT64 X20;+ UINT64 X21;+ UINT64 X22;+ UINT64 X23;+ > UINT64 X24;+ UINT64 X25;+ UINT64 X26;+ UINT64 X27;+ UINT64 X28;+ > UINT64 X29;+ UINT64 X30;+ UINT64 X31;+} > EFI_SYSTEM_CONTEXT_RISCV64;+ // // Universal EFI_SYSTEM_CONTEXT > definition //@@ -618,6 +673,7 @@ union { > EFI_SYSTEM_CONTEXT_IPF *SystemContextIpf; > EFI_SYSTEM_CONTEXT_ARM *SystemContextArm; > EFI_SYSTEM_CONTEXT_AARCH64 *SystemContextAArch64;+ > EFI_SYSTEM_CONTEXT_RISCV64 *SystemContextRiscV64; } > EFI_SYSTEM_CONTEXT; //@@ -645,6 +701,8 @@ VOID > #define IMAGE_FILE_MACHINE_EBC 0x0EBC #define > IMAGE_FILE_MACHINE_ARMTHUMB_MIXED 0x01c2 #define > IMAGE_FILE_MACHINE_ARM64 0xAA64+#define > IMAGE_FILE_MACHINE_RISCV64 0x5064+ typedef enum {@@ -653,7 > +711,8 @@ enum { > IsaIpf =3D IMAGE_FILE_MACHINE_IA64, IsaEbc =3D > IMAGE_FILE_MACHINE_EBC, IsaArm =3D > IMAGE_FILE_MACHINE_ARMTHUMB_MIXED, ///< 0x01c2- IsaAArch64 =3D > IMAGE_FILE_MACHINE_ARM64 ///< 0xAA64+ IsaAArch64 =3D > IMAGE_FILE_MACHINE_ARM64, ///< 0xAA64+ IsaRiscv64 =3D > IMAGE_FILE_MACHINE_RISCV64 ///< 0x5064 } > EFI_INSTRUCTION_SET_ARCHITECTURE; typedef struct > _EFI_DEBUG_SUPPORT_PROTOCOL EFI_DEBUG_SUPPORT_PROTOCOL;;diff - > -git a/uefi-sct/SctPkg/UEFI/UEFI_SCT.dsc b/uefi- > sct/SctPkg/UEFI/UEFI_SCT.dsc > index 2e97687b..e13e40e4 100644 > --- a/uefi-sct/SctPkg/UEFI/UEFI_SCT.dsc > +++ b/uefi-sct/SctPkg/UEFI/UEFI_SCT.dsc > @@ -2,7 +2,7 @@ > # # Copyright 2006 - 2017 Unified EFI, Inc.
# Copyright (c) 2010 -= 2018, > Intel Corporation. All rights reserved.
-# (C) Copyright 2017 Hewlett > Packard Enterprise Development LP
+# (C) Copyright 2017 - 2021 > Hewlett Packard Enterprise Development LP
# # This program and the > accompanying materials # are licensed and made available under the terms > and conditions of the BSD License@@ -42,7 +42,7 @@ > PLATFORM_VERSION =3D 0.1 DSC_SPECIFICATION = =3D > 0x00010005 OUTPUT_DIRECTORY =3D Build/UefiSct- > SUPPORTED_ARCHITECTURES =3D IA32|X64|ARM|AARCH64+ > SUPPORTED_ARCHITECTURES =3D IA32|X64|ARM|AARCH64|RISCV64 > BUILD_TARGETS =3D DEBUG|RELEASE SKUID_IDENTIFIER = =3D > DEFAULT @@ -112,6 +112,12 @@ > *_*_AARCH64_PP_FLAGS =3D -D EFIAARCH64 $(GCC_VER_MACRO) > RVCT:*_*_AARCH64_DLINK_FLAGS =3D --muldefweak + > *_*_RISCV64_CC_FLAGS =3D -D EFIRISCV64 $(GCC_VER_MACRO)+ > GCC:*_*_RISCV64_CC_FLAGS =3D -D EFIRISCV64 $(GCC_VER_MACRO) - > ffreestanding -nostdinc -nostdlib -Wno-error=3Dunused-function -Wno- > error=3Dunused-but-set-variable -Wno-error+ *_*_RISCV64_VFRPP_FLAGS > =3D -D EFIRISCV64 $(GCC_VER_MACRO)+ *_*_RISCV64_APP_FLAGS =3D -D > EFIRISCV64 $(GCC_VER_MACRO)+ *_*_RISCV64_PP_FLAGS =3D -D > EFIRISCV64 $(GCC_VER_MACRO)+ DEBUG_*_*_CC_FLAGS =3D -DEFI_DEBUG > RELEASE_*_*_CC_FLAGS =3D -DMDEPKG_NDEBUG @@ -129,6 +135,9 @@ > [Libraries.AARCH64] > ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > +[Libraries.RISCV64]+ > ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf+ > [LibraryClasses.common] > UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiA > pplicationEntryPoint.inf > UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntry > Point.inf@@ -157,6 +166,9 @@ > [LibraryClasses.AARCH64] > NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > +[LibraryClasses.RISCV64]+ > NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf+ > ########################################################## > ##################### # # These are the components that will be built > by the master makefile@@ -483,4 +495,4 @@ > SctPkg/TestCase/RIVL/Protocol/Http/Http/HttpENTSTest.inf >=20 > SctPkg/TestCase/RIVL/Protocol/Http/HttpServiceBinding/HttpServiceBinding > ENTSTest.inf [Components.IA32, Components.X64]- > SctPkg/TestCase/UEFI/EFI/Generic/ExeMode/BlackBoxTest/ExeModeBBTes > t.inf > \ No newline at end of file > +SctPkg/TestCase/UEFI/EFI/Generic/ExeMode/BlackBoxTest/ExeModeBBTe > st.inf > diff --git a/uefi-sct/SctPkg/build.sh b/uefi-sct/SctPkg/build.sh index > 37667711..f7c5e4bd 100755 > --- a/uefi-sct/SctPkg/build.sh > +++ b/uefi-sct/SctPkg/build.sh > @@ -2,6 +2,7 @@ > # > # Copyright 2006 - 2015 Unified EFI, Inc.
# Copyright (c) 2011 - = 2020, > ARM Ltd. All rights reserved.
> +# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
> # > # This program and the accompanying materials # are licensed and made > available under the terms and conditions of the BSD License @@ -22,6 +23,8 > @@ function get_build_arch > BUILD_ARCH=3DARM;; > aarch64*) > BUILD_ARCH=3DAARCH64;; > + riscv64*) > + BUILD_ARCH=3DRISCV64;; > *) > BUILD_ARCH=3Dother;; > esac > @@ -47,6 +50,12 @@ function set_cross_compile > else > TEMP_CROSS_COMPILE=3Darm-linux-gnueabihf- > fi > + elif [ "$SCT_TARGET_ARCH" =3D=3D "RISCV64" ]; then > + if [ X"$CROSS_COMPILE_64" !=3D X"" ]; then > + TEMP_CROSS_COMPILE=3D"$CROSS_COMPILE_64" > + else > + TEMP_CROSS_COMPILE=3Driscv64-unknown-elf- > + fi > else > echo "Unsupported target architecture '$SCT_TARGET_ARCH'!" > >&2 > fi > @@ -110,7 +119,7 @@ PrintUsage() { > #Print Help > # > echo "Usage:" > - echo " $0 \ > + echo " $0 \ > \ [build type (RELEASE OR > DEBUG, DEFAULT: DEBUG)]" > } > -- > 2.30.0