From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.102]) by mx.groups.io with SMTP id smtpd.web10.539.1611947029792211915 for ; Fri, 29 Jan 2021 11:03:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=CLLHPIJ+; spf=pass (domain: microsoft.com, ip: 40.107.223.102, mailfrom: bret.barkelew@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HDiX30dEuS0vY5fcpBnlf4Uy2u/PXjNCs+K4/lzL7vFdAd32l+LKLyz06qok8fjTm988P22DYB5/hwlCCy+v2WArs9E98vx9Ub+N407eCMZw3+C6g7XQjH7UKWWw3j4A5Q5UMM+T0+ZN2yeAkvFBmdbz5zK831t5bGmlGRsxc+4RLqeXFezzXbRNJhrN76mNRC3+Ie3gFYR8yJgIevXb1BwhXC02KXTqvSqek1PAMtqEQIDwG/7b8XPepzqCTZY7s6ZgpmjLE/RmxjTlsjhEEx09LCg+ssntMBahXgDMnqdVGgnQWNHRbn4bV4nKmhJ488RnAiypvmOSqCEs64XJyg== 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=7if9iP2wfj8BSVivuvv7HjOiSxU8EVwD4Gj6Ybles0c=; b=Ys61ssEYtflKFgFMHltqazXNtEZwiAJgP2h5avcKolepkTqoh0xCV5sgLKRuuZyTF3zwrMgeJnux/+T3qSm6km3JqcZtDIMSAfmILZWLwoNzGLsFQ9HSE8S1ncTVGrVQecNrjNv81nyo3ZbvCscHhZx/W39spPYLMTdWvMLP6nC5pGO4ESc0it/2YTZzudd3u6jWFGELT425EZ1kjwMCGkNUe64VTYwEMvgf8eF8jF59j+Frsr0A3+ttskGZFauBn0sjdY3IXw9TZK617q4BBbbjkyA/Ie8F8CG4CM/Ma7gIG9eKwZXpUAucVU68vG1L9WvVLTk8s1i1JbfSZ6DJ4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7if9iP2wfj8BSVivuvv7HjOiSxU8EVwD4Gj6Ybles0c=; b=CLLHPIJ+LKySK/9QxgNCP/a8d7AYnacxWgMOPHJgHAuK/R8beHl9iYPY6Va1UywFC0KTfu6rfH3VhuCKLmqeX/O6/T5nr8IaaWR6wdTYwBRKwGHA0/1FzwSsN2C8g+q5ebfU0tG0/5sCDwWxVBhCO/JfDiG/EMVZ/0csuj3ov9E= Received: from (2603:10b6:903:ba::8) by CY4PR21MB1539.namprd21.prod.outlook.com (2603:10b6:910:91::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.4; Fri, 29 Jan 2021 19:03:45 +0000 Received: from CY4PR21MB0182.namprd21.prod.outlook.com ([fe80::7c35:9b42:5a1b:4555]) by CY4PR21MB0182.namprd21.prod.outlook.com ([fe80::7c35:9b42:5a1b:4555%7]) with mapi id 15.20.3825.012; Fri, 29 Jan 2021 19:03:45 +0000 From: "Bret Barkelew" To: "devel@edk2.groups.io" , "Kinney, Michael D" , "Sheng, W" CC: Liming Gao , "Liu, Zhiguang" , "Yao, Jiewen" Subject: Re: [PATCH] MdePkg/Include: Add CET instructions to Nasm.inc Thread-Topic: [PATCH] MdePkg/Include: Add CET instructions to Nasm.inc Thread-Index: AQHW9mNbOyfOylhaAUik4uGCOd9g26o+9gnY Date: Fri, 29 Jan 2021 19:03:45 +0000 Message-ID: References: <20210129023448.30348-1-w.sheng@intel.com>, In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-01-29T19:03:18.8215805Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Privileged authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [174.21.79.155] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 4f13c498-2dc1-4888-f130-08d8c4889a28 x-ms-traffictypediagnostic: CY4PR21MB1539: x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: s9xnzhTrY1LdYRu2wwV3hNH3KA9b9SJExUNvYFVWFKBVy+mnAL1yf7n5rGt3jgeFMYugxaC7oL6WDTRCVqcuRwJHoYEoGJLQHH3QuSYIk2/nRK5XWAtLlCEhga1fMgVqWOdAYWnVUyUGM4OvXewHeq6+IYKAE75gW3AV9o9iYD6HYEnLAZOcH3whokJN3MV6Jd4BKzimq9CVwHXSqzt1Ry/J1t2lrtlV4BlvcUQIerJpCYptie6GhFURtj3CLKvDpo9A5mwwCuOf7oeIR/pTNBefzJmFadSSYLSSnkRMGyvWXHNLxS/ph4g/RS5kFMt3+J2Ur5Zuh1PopHq8BlQUEcceDeBZpzRgoy8TlaL6PFQwY+26vn7I+kIzjW13MaJnQWZrAkZgNUhX4zFrIncFsGgpg5TgQdAvS/es0L0wJLwHObT5+O0zS+2qOOVfl58jO6bc7uu4oZNpxTXw9yzOLPivj2bdEHGjiATDgnx7fNVMo0JNgbUg99gQDGtapwNz/u/ewOSA7RVtZJaBl9Gli+C/rRkXXmfFQWRQxzqUFiwKj28AFmIlWgiEEF79vTr+2n9PdGyDH6tClq+NhNuiqittX/DPiOcsCPy+mN2Hx28= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR21MB0182.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(376002)(136003)(366004)(396003)(346002)(4326008)(966005)(82960400001)(316002)(82950400001)(7696005)(54906003)(55016002)(86362001)(10290500003)(478600001)(6506007)(52536014)(5660300002)(53546011)(2906002)(26005)(66556008)(8990500004)(8936002)(83380400001)(8676002)(19627235002)(186003)(33656002)(91956017)(76116006)(66446008)(64756008)(71200400001)(166002)(9686003)(110136005)(66946007)(66476007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?fDcNT8uwW29Mtpnb/Io0D2PPe1TjTX77yUiF02XrEK4ZksssePESOWjxh1PN?= =?us-ascii?Q?H81T/JkvuetHBTGHAppoQsdKjGG7nIO4bPe5bTojzh0LgMEhUQNxljux3N0i?= =?us-ascii?Q?xeHbXYllaZuT3LZQrvi/bID5VILVFYjzskXPMrMjYaRpFlRmonv1LrLaY4kp?= =?us-ascii?Q?lDgblncbJBehA/RnlMJtFKeU4n6sQKBuvbZ2uIq9JJPTch6ZvCSZE9t3n7ly?= =?us-ascii?Q?Wy6dIEfQWYmhONK0OA66sYNCNzIYtSOMClmuxfd3jjeahbDZVFTwMuzCIsye?= =?us-ascii?Q?QHmNrG4l4TlpQcFIqdCFIJosMdAnwObQG5xWA/9map0EO1gZiQ7Sd7t2havV?= =?us-ascii?Q?PsMZjwkD13qPuMVOSsEyr6xb4AIzSUinuQoq+UIwEwad3UaI8WBdtY/R54qU?= =?us-ascii?Q?NKNuTXb1o0De6ezR2j/8CM9VHfElZlkfmtUX4uB+0ynHw48ORutGBgCpQQua?= =?us-ascii?Q?0z5cgaYyGZBOhJs8suyQfc/2U6kfOaMTQ2ZoJzJM694Qe1fUhRAHcgNFgz+e?= =?us-ascii?Q?VVW7kf4G3oBosJChO96p0QnpHkEj1K4eDBZzqJ922taQBtuh65UiwwKYj1e7?= =?us-ascii?Q?0OKzviCwoC/XpSbva5l/oXpyLh8xQmB1Q4SY0toozvyLy8D60eE1a25T7h1I?= =?us-ascii?Q?2DdlxCkP9BOv/EYq6r+LhAEgq9zSWzGbxUH/r9qk0htZ6BaCq8PgeB931mC1?= =?us-ascii?Q?0GhsrfpBDE/vRMffdAikCEjDB4rG5trFyDLupx24r26K9KrTp2pR1PRrdVyb?= =?us-ascii?Q?62pwIApjGS256kLHKg5w5XF6vGsn94ljn9HOgdIsNrlUu0CulIxNVxGXL0Sv?= =?us-ascii?Q?VEiS2lyDFUQJXTsUvn3oqY4lDPBc1ttSuFy15S6MOxO9TSPTJIveWZqAWY0w?= =?us-ascii?Q?BS+p5K1w1ut6kVLmlFpPV7nr0/GHQU1FfysS2Ko1KbWnOj8jskV7GOYqxuV3?= =?us-ascii?Q?Ucz38noJku4zCO04zSpSS6vu2NzhoOmzJl7hBIItIL9l6QGvL1ozviE3JD6l?= =?us-ascii?Q?yF2cogkCwCgDfDe3cUrx2pTJr3fgTxR7cafXkNsQmGumI4W2zS4IID64iRhU?= =?us-ascii?Q?tXACrOaqisHDis24jS4vJKToywHPvZleQ+GUV2Sf2XIewyle/vAsnDFy9K9q?= =?us-ascii?Q?BTTdv6j0OHS6zrNyARWQ3Amrv7iSUjYuUlSWcJya2ek7ApA12CPZHRGSejMS?= =?us-ascii?Q?Eb8ERA9JV17AEQE8U9rmxSF/hnFY38WpnzOikgzVBwznz5jMvHoT0uYfDs+I?= =?us-ascii?Q?H3EisbizgQRlmPcIAogD90m10kRyQytWFJd5vvRYFPSp92HVrTpYDD3VpY9S?= =?us-ascii?Q?WJ2/EZ+D24yxZIQRQS9uWZaTNL6Meo078XQMCXzMbd2unw=3D=3D?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR21MB0182.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f13c498-2dc1-4888-f130-08d8c4889a28 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jan 2021 19:03:45.3356 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: e/ZUr8wvXVXc9g1UUDEmATcVdyIXaVClb2a04i/t+yoZms1baWJBfqGyIYVxYEGStCHO6pK1Z/4whsFKk5V04g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB1539 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_CY4PR21MB01822BC179CA4F7BC74C2F5CEFB99CY4PR21MB0182namp_" --_000_CY4PR21MB01822BC179CA4F7BC74C2F5CEFB99CY4PR21MB0182namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Agreed. Do we also want to go ahead and move the CI binary forward to get s= ome hours on it? - Bret From: Michael D Kinney via groups.io Sent: Friday, January 29, 2021 9:22 AM To: Sheng, W; devel@edk2.groups.io; Kinney, Michael D Cc: Liming Gao; Liu, Zhiguang; Yao, Jiewen Subject: [EXTERNAL] Re: [edk2-devel] [PATCH] MdePkg/Include: Add CET instr= uctions to Nasm.inc Sheng, The following version of the NASM documentation shows support for these in= structions. https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%= 2Fnasm.us%2Fdoc%2Fnasmdocb.html&data=3D04%7C01%7CBret.Barkelew%40micros= oft.com%7C64baec72ed934d46095808d8c47a7cfd%7C72f988bf86f141af91ab2d7cd011db= 47%7C1%7C0%7C637475377656169680%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDA= iLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3Dc5NkC4v4= 6Pgx3Bu0KqiaM0RdQ%2FIjauW3hzzDQlfeyZg%3D&reserved=3D0 Do we need to increase the min NASM version requirements for EDK II to avo= id adding macros with DB? Thanks, Mike > -----Original Message----- > From: Sheng, W > Sent: Thursday, January 28, 2021 6:35 PM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Liming Gao ; Liu, Zhiguang > ; Yao, Jiewen > Subject: [PATCH] MdePkg/Include: Add CET instructions to Nasm.inc > > This is to add instruction SAVEPREVSSP, CLRSSBSY and RSTORSSP_RAX in Nas= m, > because these instructions are not supported yet. > > REF: https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2= Fbugzilla.tianocore.org%2Fshow_bug.cgi%3Fid%3D3192&data=3D04%7C01%7CBre= t.Barkelew%40microsoft.com%7C64baec72ed934d46095808d8c47a7cfd%7C72f988bf86f= 141af91ab2d7cd011db47%7C1%7C0%7C637475377656169680%7CUnknown%7CTWFpbGZsb3d8= eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&a= mp;sdata=3Dj3x2gnCcnx2E%2B8nuUrQJ7YPdWQbr4yI9yWlkFIiRrj4%3D&reserved=3D= 0 > > Signed-off-by: Sheng Wei > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Cc: Jiewen Yao > --- > MdePkg/Include/Ia32/Nasm.inc | 14 +++++++++++++- > MdePkg/Include/X64/Nasm.inc | 14 +++++++++++++- > 2 files changed, 26 insertions(+), 2 deletions(-) > > diff --git a/MdePkg/Include/Ia32/Nasm.inc b/MdePkg/Include/Ia32/Nasm.inc > index 31ce861f1e..9c1b7796ea 100644 > --- a/MdePkg/Include/Ia32/Nasm.inc > +++ b/MdePkg/Include/Ia32/Nasm.inc > @@ -1,6 +1,6 @@ > ;----------------------------------------------------------------------= -------- > ; > -; Copyright (c) 2019, Intel Corporation. All rights reserved.
> +; Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved. > ; SPDX-License-Identifier: BSD-2-Clause-Patent > ; > ; Abstract: > @@ -20,3 +20,15 @@ > %macro INCSSP_EAX 0 > DB 0xF3, 0x0F, 0xAE, 0xE8 > %endmacro > + > +%macro SAVEPREVSSP 0 > + DB 0xF3, 0x0F, 0x01, 0xEA > +%endmacro > + > +%macro CLRSSBSY_EAX 0 > + DB 0x67, 0xF3, 0x0F, 0xAE, 0x30 > +%endmacro > + > +%macro RSTORSSP_EAX 0 > + DB 0x67, 0xF3, 0x0F, 0x01, 0x28 > +%endmacro > diff --git a/MdePkg/Include/X64/Nasm.inc b/MdePkg/Include/X64/Nasm.inc > index 42412735ea..c5189982bb 100644 > --- a/MdePkg/Include/X64/Nasm.inc > +++ b/MdePkg/Include/X64/Nasm.inc > @@ -1,6 +1,6 @@ > ;----------------------------------------------------------------------= -------- > ; > -; Copyright (c) 2019, Intel Corporation. All rights reserved.
> +; Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved. > ; SPDX-License-Identifier: BSD-2-Clause-Patent > ; > ; Abstract: > @@ -20,3 +20,15 @@ > %macro INCSSP_RAX 0 > DB 0xF3, 0x48, 0x0F, 0xAE, 0xE8 > %endmacro > + > +%macro SAVEPREVSSP 0 > + DB 0xF3, 0x0F, 0x01, 0xEA > +%endmacro > + > +%macro CLRSSBSY_RAX 0 > + DB 0xF3, 0x0F, 0xAE, 0x30 > +%endmacro > + > +%macro RSTORSSP_RAX 0 > + DB 0xF3, 0x0F, 0x01, 0x28 > +%endmacro > -- > 2.16.2.windows.1 --_000_CY4PR21MB01822BC179CA4F7BC74C2F5CEFB99CY4PR21MB0182namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Agreed. Do we also want to go ahead and move the CI= binary forward to get some hours on it?

 

- Bret

 

From: Michael D Kinney via = groups.io
Sent: Friday, January 29, 2021 9:22 AM
To: Sheng, W; devel@edk2.groups.io; Ki= nney, Michael D
Cc: Liming Gao; Liu, Zhiguang; Yao, Jiewen=
Subject: [EXTERNAL] Re: [edk2-devel] [PATCH] MdePkg/Include: Add CE= T instructions to Nasm.inc

 

Sheng,

The following version of the NASM documentation shows support for these in= structions.

        https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fnasm.u= s%2Fdoc%2Fnasmdocb.html&amp;data=3D04%7C01%7CBret.Barkelew%40microsoft.= com%7C64baec72ed934d46095808d8c47a7cfd%7C72f988bf86f141af91ab2d7cd011db47%7= C1%7C0%7C637475377656169680%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJ= QIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3Dc5NkC4v4= 6Pgx3Bu0KqiaM0RdQ%2FIjauW3hzzDQlfeyZg%3D&amp;reserved=3D0

Do we need to increase the min NASM version requirements for EDK II to avo= id adding macros with DB?

Thanks,

Mike

> -----Original Message-----
> From: Sheng, W <w.sheng@intel.com>
> Sent: Thursday, January 28, 2021 6:35 PM
> To: devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Liming Gao = <gaoliming@byosoft.com.cn>; Liu, Zhiguang
> <zhiguang.liu@intel.com>; Yao, Jiewen <jiewen.yao@intel.com&= gt;
> Subject: [PATCH] MdePkg/Include: Add CET instructions to Nasm.inc
>
> This is to add instruction SAVEPREVSSP, CLRSSBSY and RSTORSSP_RAX in = Nasm,
> because these instructions are not supported yet.
>
> REF: https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugzil= la.tianocore.org%2Fshow_bug.cgi%3Fid%3D3192&amp;data=3D04%7C01%7CBret.B= arkelew%40microsoft.com%7C64baec72ed934d46095808d8c47a7cfd%7C72f988bf86f141= af91ab2d7cd011db47%7C1%7C0%7C637475377656169680%7CUnknown%7CTWFpbGZsb3d8eyJ= WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&= amp;sdata=3Dj3x2gnCcnx2E%2B8nuUrQJ7YPdWQbr4yI9yWlkFIiRrj4%3D&amp;reserv= ed=3D0
>
> Signed-off-by: Sheng Wei <w.sheng@intel.com>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> ---
>  MdePkg/Include/Ia32/Nasm.inc | 14 +++++++++++++-
>  MdePkg/Include/X64/Nasm.inc  | 14 +++++++++++++-
>  2 files changed, 26 insertions(+), 2 deletions(-)
>
> diff --git a/MdePkg/Include/Ia32/Nasm.inc b/MdePkg/Include/Ia32/Nasm.= inc
> index 31ce861f1e..9c1b7796ea 100644
> --- a/MdePkg/Include/Ia32/Nasm.inc
> +++ b/MdePkg/Include/Ia32/Nasm.inc
> @@ -1,6 +1,6 @@
>  ;--------------------------------------------------------------= ----------------
>  ;
> -; Copyright (c) 2019, Intel Corporation. All rights reserved.<BR&= gt;
> +; Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.= <BR>
>  ; SPDX-License-Identifier: BSD-2-Clause-Patent
>  ;
>  ; Abstract:
> @@ -20,3 +20,15 @@
>  %macro INCSSP_EAX      0
>      DB 0xF3, 0x0F, 0xAE, 0xE8
>  %endmacro
> +
> +%macro SAVEPREVSSP     0
> +    DB 0xF3, 0x0F, 0x01, 0xEA
> +%endmacro
> +
> +%macro CLRSSBSY_EAX    0
> +    DB 0x67, 0xF3, 0x0F, 0xAE, 0x30
> +%endmacro
> +
> +%macro RSTORSSP_EAX    0
> +    DB 0x67, 0xF3, 0x0F, 0x01, 0x28
> +%endmacro
> diff --git a/MdePkg/Include/X64/Nasm.inc b/MdePkg/Include/X64/Nasm.in= c
> index 42412735ea..c5189982bb 100644
> --- a/MdePkg/Include/X64/Nasm.inc
> +++ b/MdePkg/Include/X64/Nasm.inc
> @@ -1,6 +1,6 @@
>  ;--------------------------------------------------------------= ----------------
>  ;
> -; Copyright (c) 2019, Intel Corporation. All rights reserved.<BR&= gt;
> +; Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.= <BR>
>  ; SPDX-License-Identifier: BSD-2-Clause-Patent
>  ;
>  ; Abstract:
> @@ -20,3 +20,15 @@
>  %macro INCSSP_RAX      0
>      DB 0xF3, 0x48, 0x0F, 0xAE, 0xE8
>  %endmacro
> +
> +%macro SAVEPREVSSP     0
> +    DB 0xF3, 0x0F, 0x01, 0xEA
> +%endmacro
> +
> +%macro CLRSSBSY_RAX    0
> +    DB 0xF3, 0x0F, 0xAE, 0x30
> +%endmacro
> +
> +%macro RSTORSSP_RAX    0
> +    DB 0xF3, 0x0F, 0x01, 0x28
> +%endmacro
> --
> 2.16.2.windows.1





 

--_000_CY4PR21MB01822BC179CA4F7BC74C2F5CEFB99CY4PR21MB0182namp_--