From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web08.3457.1618469019112965166 for ; Wed, 14 Apr 2021 23:43:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=ZWII9foe; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: jian.j.wang@intel.com) IronPort-SDR: c607iQYxJfjqD7HZ34yn74aONcJDHpixDALDOwD79CUXG2Pc8d0H34Ui4jwgP90OWjbl6vNOG/ EkCTyDmtDcLA== X-IronPort-AV: E=McAfee;i="6200,9189,9954"; a="192671446" X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="192671446" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 23:43:37 -0700 IronPort-SDR: 2URlwMOJIsFCO+n2w2wH3/7PeBWgEUjLQBb/D+CSgQml36SFG/piFjw910gMXK+d2hGXlzw6fA A1H66/PPNVSQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="383926954" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga006.jf.intel.com with ESMTP; 14 Apr 2021 23:43:35 -0700 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 14 Apr 2021 23:43:34 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Wed, 14 Apr 2021 23:43:34 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Wed, 14 Apr 2021 23:43:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EIqLcARFJ4x6fDeRt55Mq3g5alhr00635a5xUZLe7bGjUQXFXUcJY5lB0tkV1INpSs/CEkiUmmBi4PaXCBxL8IrCYyizR9zX/uqinkLmH5iCXC/Ksn2uHpMHoGEL3nrvWvDi5qRroDsJYyg9ZUFkynSuZS7SMi6OHXVi24fQWboZIuhhZRPYspg33WvLFmIC+VsSr6RhxLOw3SkvKKs+JBvdV9DsVUHTzKwyxEwwf0hecXsadI27n0sum2mnhFlWpreUYUK33Fx05/U4H1NIuL6uJSUVMhf7WbJJRqxyI481BFV4JCS8DaJycYNA176/HywJWwjAVYNckngfez0Tpg== 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=C3MTG1AQ0kRn4jfI7/8QvRHwpXtFwaEjUUjvkgOv4ys=; b=F8DlGILNmbBl2S0w+YHxtkRNhlz8JVPXZG0PG+zvsMlRog6Ynludo+UyfjmO1zQ0Sx6hX1loRz/sUj9aUa2F74Ld7blMD7xyOo7SdkUM9mBc3zlVlK3tmFi1jFygt4i6jHLps8nvQeOHTc6idWinepAbYlTR1L2oXZFV9z/Ef4eXOOfZ8WdoTnOA3l3N2A9wZ7E6F6k46Qx2SR8o03/TW2mazmJsU5ScxLWCJ75xxDTfJK4Y01azjnUT2GLiO9e+BuGSQE7UpRxgwdsIvj+ScBKeqPInPbFZn7KMgNQz+Fi569dJFASBG9BKBzn7VwUVjqoAffvDs45rt+jsAFR4Rw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C3MTG1AQ0kRn4jfI7/8QvRHwpXtFwaEjUUjvkgOv4ys=; b=ZWII9foeddMCZ+BLT0oDFBPzD2eVtmcSqbSOJjOYyEiiIxg//wAZiEYIybXVVhjSC53KnmeXj+4TZatpjGDjD5VxmHYxnxO6f1E69cz+9XCvaZ3kUErm0VDuR1d08fUWpyu+jvp8udnvLRsoY3doXWjIY8Gp/fcnyJncfHaYA04= Received: from CO1PR11MB4945.namprd11.prod.outlook.com (2603:10b6:303:9c::8) by CO1PR11MB4817.namprd11.prod.outlook.com (2603:10b6:303:98::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.18; Thu, 15 Apr 2021 06:43:32 +0000 Received: from CO1PR11MB4945.namprd11.prod.outlook.com ([fe80::213f:87ae:e3de:ea49]) by CO1PR11MB4945.namprd11.prod.outlook.com ([fe80::213f:87ae:e3de:ea49%6]) with mapi id 15.20.4020.023; Thu, 15 Apr 2021 06:43:32 +0000 From: "Wang, Jian J" To: "Kinney, Michael D" , "devel@edk2.groups.io" CC: "Yao, Jiewen" , "Lu, XiaoyuX" , "Jiang, Guomin" , Andrew Fish , Abner Chang Subject: Re: [Patch v2 2/4] CryptoPkg/Library/Include: Allow CPU specific defines to be predefined Thread-Topic: [Patch v2 2/4] CryptoPkg/Library/Include: Allow CPU specific defines to be predefined Thread-Index: AQHXMN41zMM8iNHxv0ebE7z6EyxxN6q1I1DA Date: Thu, 15 Apr 2021 06:43:32 +0000 Message-ID: References: <20210414032758.1818-1-michael.d.kinney@intel.com> <20210414032758.1818-3-michael.d.kinney@intel.com> In-Reply-To: <20210414032758.1818-3-michael.d.kinney@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.208] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 10bdd1e3-34fb-4e3c-87fa-08d8ffd9c976 x-ms-traffictypediagnostic: CO1PR11MB4817: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VCFelH7uicZrl8In0XMPd0ipjL7GDOA1sZIjmwMLgGc8ef7NYzftX0MUebA9Ckd0oyQOzpUvRsFxgLXLsDmnPWGgY+TEB2D2VcnNXcs7jxDZDfTqpPycnky4hy6kOyzWX9dOUh4DHWXlfrGFCCD3G1Wdoms1t6JclAKiwhHqDzpYsHLBAQOB356qzKB3z4Us29k4JkyoHRyLbte5yM1TqYGeazZP6AhJufYrPRwf53fjuLLFDsrPqtv7SFGLZjNP2FG6niBx3oQIfWN9UQfyLOrhW6SGzI4nGe+TzBDfnqbFcEMuovCvBDPJdvL3QRc6lwJ4YJI0dQormAeppj16JutiEd+y/CfCQjxIe/j4Lsl/gg5vCSf5yGdacaHntMEnUBlfeVJicfMawK1g6SNPDqjiB0L98up2gcxOvzhvz6uwQ7VP4NbyHDCZTnU0wOMBQInF7OmJQuFKZ6yUgPIfly0IaN4EcVRdHXNtQQbZmgxeZyiWrWt6Lid2tvysjI8B2S0JZoI4cOU5PC9i9DgOEv0z3AqICwxe6GAz5AHvi72POYQ83VIdsK88fZG5GnzeypLAQE8SKGuLfmXFtPIUIkWISxN4JQg9mBEXtmeDJf904082wkO2FWQaCGfUEvRLO22WPES27zH+ejjDdKzH8XdTg+KWXCg8exOWpXl0rVsBWCblt5RXGn30r4jFdtZp1rtyDzLOi2NH1WywoG9Y5q99ec4ijpazFfLc9dDrNW8= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4945.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(376002)(396003)(39860400002)(136003)(366004)(346002)(66446008)(66476007)(66556008)(64756008)(110136005)(316002)(33656002)(8676002)(186003)(71200400001)(66946007)(76116006)(2906002)(54906003)(9686003)(38100700002)(55016002)(966005)(122000001)(478600001)(86362001)(7696005)(53546011)(8936002)(4326008)(83380400001)(6506007)(52536014)(5660300002)(26005)(21314003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?gwrGM2ZGen20A4fGfNaDun6NqmWHUKVSWW/0OLpeMGHS3JC05I4gJEvytkqJ?= =?us-ascii?Q?VjRei/7VoD5CVCw/LLDeSrMyew+YgvZkcHdwQcyj8uPvJ/GwZziKcp5ba26R?= =?us-ascii?Q?5pgWOMPksrD191mCoeo/HbRFLSv8yjCKPOsbvRf6g0tKh/8pXh1OhUdUKMxf?= =?us-ascii?Q?72oGmzZjLH4KR1/jbIc8Cy84cm3AgC3sUXLCFvLC2bP40O1Ar1JbvmXxTcvJ?= =?us-ascii?Q?oarqnoBf2/2stCqiKDiV37A9uRBzrXGWyUxOrZzXEQC+T8UKMQ1MW3pnrhri?= =?us-ascii?Q?u5le52m4R1aDaRft+534f//FcSrZu9XfguibBnNMty6Wra06A96l6zFyFH+u?= =?us-ascii?Q?NeaUgSGOVFfpToQl/ayTzvnv7iwshOVKs46yBIIL1Go4Gd7S+V6tTdr8reHj?= =?us-ascii?Q?UruXax4Xn7cnWdBQ/qZTvb2pLWbnukm+lJWS2QHw7Wm5SCf+ZPfHS1hgE/fa?= =?us-ascii?Q?jlI/rFYlfCYgMDXiILmu512F7FDP2Llh4IHolojA4Z8zgcWz45+Hq2ks4yna?= =?us-ascii?Q?mUu5A6X7tVNmW2dI6vph4Ef6UBHR+/yj8ifUv5iOR6BXa8Xkpe1PfFG0Czpb?= =?us-ascii?Q?+gfi1bGg283OpmO69aCHKCNXJtuqjk5HLr7hyVS561spkTNmLuQn7zbUzqpM?= =?us-ascii?Q?axtdX9sap5gDwu6AgwdyNnlLUuvoGWpX1sialKyQQe6fGWeGCfCa2ZMNoCIE?= =?us-ascii?Q?3hCQShBd7Ky7S2Y2NqEaDYHEoVThZ6TT+3MEwJGcEQf07UjVxnnRAsPkrpYv?= =?us-ascii?Q?pt6s9pL3/sz68zCH88eEP8hp2psrGT6MOWb0jTs+suISerzCj1gWXUwWiFeT?= =?us-ascii?Q?wd5Mn0rjsmYUjTeoCcSsB0fUSnfR+WHAJFdf/B4xyPzQVxAfUDQ+GuERycOg?= =?us-ascii?Q?rCdnDpwsYPaeJzQzbcTmGsgj0AjXYp9u95l9u+YxNhe356rXfAxdrp7U99iX?= =?us-ascii?Q?r4+CNBOFuvTBIeM6Vn+KCLJGlXUT1531aie6WgWFRw3AXFn7vmXptH8iWQwO?= =?us-ascii?Q?9dz64+sgmirN/G6QTKE5NQnoKNbxNZVkL+tE8FkLCRYys+V9qfizatTx3DUY?= =?us-ascii?Q?mvhPTRUKk1qLmEr1FnumwQh+DxX9KXzxvptxvi6DMQec75Tu8wO41oshlKOM?= =?us-ascii?Q?+K27zbBjJwPy45d/PlToZzEknw3TUObDG5L/iFqiMnbCoi02JQXrpqpbWHt4?= =?us-ascii?Q?3KEmlLSq5mWAi0k05kJcnb/QckShg1T9N6fovbQSbNy6nt/GhoG6+vojZNrB?= =?us-ascii?Q?WdfsYkgzOXBHharNplCzanPO/nv8jWPjZNC+3bGsVRW3q8yii0JTrORKFPyy?= =?us-ascii?Q?AwwGyK4TH+tIF3Z9YG8mv8kj?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4945.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 10bdd1e3-34fb-4e3c-87fa-08d8ffd9c976 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2021 06:43:32.4346 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mT6gtwsfO2HZACPJ8Kl4/WjD/X3fb+GNPKS6ZJebUBmJzO7xiNf+WiHjSPJW+NFUfPrKfGAyVLYXtK0ysznRtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4817 Return-Path: jian.j.wang@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jian J Wang Regards, Jian > -----Original Message----- > From: Kinney, Michael D > Sent: Wednesday, April 14, 2021 11:28 AM > To: devel@edk2.groups.io > Cc: Yao, Jiewen ; Wang, Jian J ; > Lu, XiaoyuX ; Jiang, Guomin ; > Andrew Fish ; Abner Chang > Subject: [Patch v2 2/4] CryptoPkg/Library/Include: Allow CPU specific def= ines to > be predefined >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3308 >=20 > The EDK II Build Specifications do not restrict the set of > CPU architectures that can be supported. Remove places in > the EDK II that assume a fixed set of CPU architectures. >=20 > Update SIXTY_FOUR_BIT and THIRTY_TWO_BIT defines in the > CryptoPkg to allow one of them to be predefined on the EDK II > build command line using /D flag or in DSC file [BuildOptions] > sections. >=20 > Cc: Jiewen Yao > Cc: Jian J Wang > Cc: Xiaoyu Lu > Cc: Guomin Jiang > Cc: Andrew Fish > Cc: Abner Chang > Signed-off-by: Michael D Kinney > --- > CryptoPkg/Library/Include/CrtLibSupport.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h > b/CryptoPkg/Library/Include/CrtLibSupport.h > index 7a82f1d40633..b1dff03bdc0c 100644 > --- a/CryptoPkg/Library/Include/CrtLibSupport.h > +++ b/CryptoPkg/Library/Include/CrtLibSupport.h > @@ -2,7 +2,7 @@ > Root include file of C runtime library to support building the third-p= arty > cryptographic library. >=20 > -Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.
> +Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.
> Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All right= s > reserved.
> SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > @@ -44,6 +44,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > #define CONFIG_HEADER_BN_H >=20 > +#if !defined(SIXTY_FOUR_BIT) && !defined (THIRTY_TWO_BIT) > #if defined(MDE_CPU_X64) || defined(MDE_CPU_AARCH64) || > defined(MDE_CPU_IA64) || defined(MDE_CPU_RISCV64) > // > // With GCC we would normally use SIXTY_FOUR_BIT_LONG, but MSVC needs > @@ -56,6 +57,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent > #else > #error Unknown target architecture > #endif > +#endif >=20 > // > // Map all va_xxxx elements to VA_xxx defined in MdePkg/Include/Base.h > -- > 2.31.1.windows.1