From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.21502.1680171399925256563 for ; Thu, 30 Mar 2023 03:16:40 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=FvI5CIQS; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680171399; x=1711707399; h=from:to:cc:subject:date:message-id:mime-version; bh=j6eypSHACJy9MSuvkQDiU960TgXqM0uTLnUOLO5mP/8=; b=FvI5CIQSnowfYWMFiRSmquc6iaTomQ4CEj0HbrxAFWJnCqKGDQe0Mhg9 R9suUEoKGFD7slih6GWSyIC1eNYpmdwysmD2W74Dj/Bnh7QwO4+u9oAOA +VnVokJjDyuHdjGkmteu+ajyCm0KToY4ad3wCoVCrMQoZY6oOaHPVDrID W8tZee+7qi7pK++AFmwei6w23vXXDbLQQfBMNov666LtGSGYKU/GSnAt6 Cqu9+WaJWIPK08LHNUwRfitrgvT66ff6xW1UyajkCpsaCrJQo/3xGDObd Su5tUEbIyopObJMbpvdoGkkZUawsOHm/3wyyG4dL7thS0pPs0VOMQrxj8 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="321512574" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208,217";a="321512574" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2023 03:16:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="808580412" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208,217";a="808580412" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga004.jf.intel.com with ESMTP; 30 Mar 2023 03:16:31 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 30 Mar 2023 03:16:30 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 30 Mar 2023 03:16:30 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.101) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Thu, 30 Mar 2023 03:16:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=chWYeWlpLFmPf2a16c3cuhj+LWWOu69PEnxZUBFlUeXa41eRjO/Yaxjf9JEs9XEgNrvAyMngQKjM4WGRt/OYNQE9PKhi436ToWyglgJijbIMY874Aa1wNwtaJAWOiy34U1uPWMsDw9uWK3Lk2E07GFn+dzFzjn+91mcBliLFfcUyRXrFziK4srgjFUUIJ5wLW85f8f4TXV4daRBdBgrgX3wgbjtoJ+6Zr25V12UyZ35pv3132w7WX16G03grXRpeY94JBTQBj2fEWEBwr1XlmiG80fcgvDzzhCh2qvMX0n1vkD6nQhVxP8AuKPcIgpHn4mFqmpvDy06ATeniBwCXYg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dRYG8xhMGG4sMVh+ReU7JeKz1VQppAMtJ0FR8Ha7b8U=; b=Kx1Qb+48ee7R+pRICfIYB0+Qt5Wq148vMOY+vR6t9nZ7j3Uojajo3x/RPbujrLk2NK4Z0Mqv1EjhO0ss2S4CK4f9SmwiiawRFa6QLcUjbOrNB7HXWteOGopUyhQhdhy9jqrqhszGgCTFZ/CdsM9AqQdL50edlUEOsnggnlVWoe/0pOYRlgPefPSBa683lky3ydThy6CZTCTf0H7QcloCtRn6qGM55srYyel4H0f8vfnZZ06WwydGtZT3VLGrydSoNOyZRvGl6jzkiz7zYH/doPbJjsR+dpQdrfo4k6W6Q8tHqL03iGNzJWWuSSMWV4t81Iy28Hv8DaU1BogbyCbc9g== 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 Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by DM4PR11MB5565.namprd11.prod.outlook.com (2603:10b6:5:39e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.20; Thu, 30 Mar 2023 10:16:28 +0000 Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::ae07:e96a:4a24:8a69]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::ae07:e96a:4a24:8a69%8]) with mapi id 15.20.6222.035; Thu, 30 Mar 2023 10:16:28 +0000 From: "Ni, Ray" To: Andrew Fish CC: "Kinney, Michael D" , "devel@edk2.groups.io" , "Liu, Zhiguang" Subject: Is Xcode5ExceptionHandlerAsm.nasm still needed? Thread-Topic: Is Xcode5ExceptionHandlerAsm.nasm still needed? Thread-Index: Adli7+lrPEezFnSdTgChYnf5YhXIYQ== Date: Thu, 30 Mar 2023 10:16:27 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|DM4PR11MB5565:EE_ x-ms-office365-filtering-correlation-id: 81ccf8f3-63a0-4e9f-ea5e-08db3107d30e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yfV7ZEj7ClXjDEOeQ45aUktbyjm3eWcpRqLzlV9jXEk8iKRiFfqnPAtqYR6Fp62CUN6mfgerBO4W45U9XUhp4GHslSjmcLwQD8A15EyfTMKhvTaTtAgSEG75gPEo+OAUGfxroV3ivk3RBpLa/RFbRGu3jHiBIVQvmmHPR+CEmvQftND95/eQ0pXhxnCl9hMxrLqiXUVyiNFoJGkm4mMKAGz2QBEWIOXJbeEJ1nfdhvGp62WyXkd9WjzY/RXQ4C+085lHcsW876p5XraemgU0rMif6d2lwjOHLnzlBk9YpQkDqVP/WoKD0k67sbR38MvVDP2TwiF0W7VbLNfyu1X6v7dmzyeeo+nbdxZJJXAGHE1M0QRzPMj7atMaoWUPU0E31ty4FywlnatbaO9mKqm0QFFMOU/UGZvFMFCBKFfP0RwUmmLfiFFXKpFMpSZxWujgRPj/r0qnxKNFp2BFELKRpXFbHNflhoXRrTa4UEPAvPQRH4nu09NQ5G/GctocJ+pIyp/XHYg0bT3X5EHsgTf9MZG2hjVqu0J/RXwX6A0Cbl6YXkUBsV04eRVYAipO4WYLmaYnxJLp3yO2KpC5nUb9O3UO8eNEkqHrnPXkcfs0KW0= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN6PR11MB8244.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(396003)(366004)(346002)(136003)(376002)(451199021)(478600001)(54906003)(316002)(186003)(38100700002)(122000001)(166002)(55016003)(38070700005)(33656002)(7696005)(82960400001)(71200400001)(26005)(107886003)(5660300002)(6506007)(4744005)(8936002)(9686003)(2906002)(66476007)(41300700001)(66946007)(52536014)(66556008)(76116006)(64756008)(4326008)(8676002)(6916009)(66446008)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?udcrbXopSooR+HVx/E5FlwNEVnZ1IZ1om0YxfP+XkzKV3SomeUkRFJh6GMw2?= =?us-ascii?Q?djK41SE1IR2ullaBfBOJPWRq1SfArq40YLciV9UaQNGpVhdm/3STcSDwuFAo?= =?us-ascii?Q?ztvxGifzL+3l8QPFGY4zTQqdLHhtNUQbBm9IAT0wE1bdcZxomf7J5hJLvMG6?= =?us-ascii?Q?Kkx/7wzD2Qd+Sq4ms0YCOZ5Tu/HGgj45eIXmXsFzffbGhfGmwBEoc/WZl5Rx?= =?us-ascii?Q?mtDDYBAyFdGyJoFgQr1zCKlj/XG2kC0gxh9Ym6u5pSq/mTu7pYYxknu9p9gG?= =?us-ascii?Q?UKvptksXJtWd+vNDz/lKpo6otqmE/B7kS54TBm+E2v0EjIuETPRbg0hhWOF1?= =?us-ascii?Q?9aWYbMrgx0+A373LvcGwl2jNG6HnP07RUpzl+M7rGF/IRjPtSzk5o0xhHWUE?= =?us-ascii?Q?F/PPhzQwriGbwb8FoXResomPYHJ+PLCQaNSSUHhC20g4LV+A7yd8D1n3LEJ2?= =?us-ascii?Q?ITmH7Ml4Sdqnct+kSpi8qaeGv25+D1aK9EpffRc/1O2CKADgugFndMe+1udp?= =?us-ascii?Q?iqFSAeWdayhX4Gt8f+44Ri39lbTMV0ElouIrOrVPnWMivxBpLXh+hbS9l0tj?= =?us-ascii?Q?Df7YFQXO1NfEzb4SZDtD0iVA57RL0A1BQ6p/C1xohiRhxeklQNk5VkcIvr+j?= =?us-ascii?Q?rN0AdRLXzTwRUks34H10ZZidNrwnbXbhZPEmaLBLwUrEn15uSRmF7XzFjhf3?= =?us-ascii?Q?oBtOjvKNZl6Ff0giqJXXRo2NqJS9iJ4kYLcD3VDzGxL55gXvZYgez4UJK5D6?= =?us-ascii?Q?aUiGDhK6Ihzg2vUVU5ei3zp9nHoLQxAIIQZWkkUH7T9TMOMluRnREObb0M7g?= =?us-ascii?Q?snoPD4lcxRARtdrsKhvnJr+pMBQ2o8dhKy4HGGjsWUYmxVlt58JGH5y+Fo2G?= =?us-ascii?Q?GJY9XiyMnY7h0lCOBihC2TL8sdw50L2/RcYo31CMIPMNWFFoywMdWQ3wHAiH?= =?us-ascii?Q?vjmmtWfkjIA5CmCVjo3QHApnqKBcNBkJLMBA5nvHRgcync8+BDQaHd0dg7Er?= =?us-ascii?Q?CoT9ubH8WKq3tTat3W5glATHAV9OaXyWlAJHwrHUmkxsChQMxbxKlVZf0/RG?= =?us-ascii?Q?5jflDuyeNjEznMQYrJPHnw9vMYAut+E1ztKI2UC6U+/N8eOn+y6rKgBYTxTL?= =?us-ascii?Q?y0yhFiR1fJhmXpXWf/mzR0jr/AATS1BYzeeJBWASoD6Szf7+IpDrbaRlK0sX?= =?us-ascii?Q?h8STAKc1scWGpw8wkk+ZFISmmFXysFq7rMwDJDOymdGCdeDILn+CQQ/Y8e7C?= =?us-ascii?Q?uhEgBFgv1ojN84zcCQd768W5VYA/wFk3M9S3UsYfQfY28xG9MXAIPL9J2oYt?= =?us-ascii?Q?RrF2o9rUYYNhYM653AfD7q2aj6Ds7+QmkWqCzR4zuznLiCbCIesL3YHR5Keg?= =?us-ascii?Q?G9OGKzP3Spp0XuSq6L+5cmTSWJexyjKa6Zh01W1M9XBXvzZ1820DvGhYoD1o?= =?us-ascii?Q?KEZGDH/eMCO9x39AeaWZ0oz0z5yttQt8D6C4PSwCnsi/687n+kwI7njdP/61?= =?us-ascii?Q?4yj5ZlTB1goWgfnnovkjhj7fYlDW+LOizTCz7UtSiBJ6X7OGTa292iD/3DzQ?= =?us-ascii?Q?ClXzoVMn4kEs1frpvh0=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81ccf8f3-63a0-4e9f-ea5e-08db3107d30e X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Mar 2023 10:16:27.7989 (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: bsbbwUo++gTxGPEVUpv3m/tFNeM3X13oMIJC7/iH/S3eUESYoqrqs/Jye+usGXACOyCbChOySlieZ8s4wRz2Gg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5565 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MN6PR11MB8244E7D0589C5CE6B1E171758C8E9MN6PR11MB8244namp_" --_000_MN6PR11MB8244E7D0589C5CE6B1E171758C8E9MN6PR11MB8244namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Andrew, In UefiCpuPkg\Library\CpuExceptionHandlerLib\X64\, there are two nasm files= : ExceptionHandlerAsm.nasm and the other XCODE version. The major diff between the two is the second operand in "mov rax, ASM_PFX(C= ommonInterruptEntry)" is patched at runtime by code, instead of relying on = linker/loader to fix it. Can I know more background why it's needed for XCODE? Given Apple is switching away from X86 CPU, is the XCODE version still need= ed? + Mike because I found another commit by you for bug: 565 - Fix X64 XCODE5/= NASM compatibility issue in UefiCpuPkg MpInitLib (tianocore.org). Thanks, Ray --_000_MN6PR11MB8244E7D0589C5CE6B1E171758C8E9MN6PR11MB8244namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Andrew,

In UefiCpuPkg\Library\CpuExceptionHandlerLib\X64\, t= here are two nasm files: ExceptionHandlerAsm.nasm and the other XCODE versi= on.

 

The major diff between the two is the second operand= in “mov rax, ASM_PFX(CommonInterruptEntry)” is patched at runt= ime by code, instead of relying on linker/loader to fix it.

Can I know more background why it’s needed for= XCODE?

 

Given Apple is switching away from X86 CPU, is the X= CODE version still needed?

 

+ Mike because I found another commit by you for bug= : 565 – Fix X64 XCODE5/NASM compatibility issue in UefiCpuPkg MpInitLib= (tianocore.org).

 

Thanks,

Ray

--_000_MN6PR11MB8244E7D0589C5CE6B1E171758C8E9MN6PR11MB8244namp_--