From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web09.3565.1613799315869029787 for ; Fri, 19 Feb 2021 21:35:16 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Sat, 20 Feb 2021 13:35:13 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Michael D Kinney'" , "'Zhiguang Liu'" , "'Jiewen Yao'" References: <20210220031501.24284-1-w.sheng@intel.com> <20210220031501.24284-2-w.sheng@intel.com> In-Reply-To: <20210220031501.24284-2-w.sheng@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHY1IDEvMl0gTWRlUGtnL0luY2x1ZGU6IEFkZCBDRVQgaW5zdHJ1Y3Rpb25zIHRvIE5hc20uaW5j?= Date: Sat, 20 Feb 2021 13:35:13 +0800 Message-ID: <007c01d7074a$29c01ef0$7d405cd0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQF3eV2yPKetLskLRESm8cmS0/XCYwIKQpoOqw9PgAA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: bounce+27952+71865+4905953+8761045@groups.io > =B4=FA=B1=ED Sheng Wei > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA2=D4=C220=C8=D5 11:15 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Michael D Kinney ; Liming Gao > ; Zhiguang Liu ; Jiewe= n > Yao > =D6=F7=CC=E2: [edk2-devel] [PATCH v5 1/2] MdePkg/Include: Add CET instru= ctions to > Nasm.inc >=20 > This is to add instruction SAVEPREVSSP, CLRSSBSY and RSTORSSP_RAX in > Nasm. > The open CI is using NASM 2.14.02. > CET instructions are supported since NASM 2.15.01. >=20 > DB-encoded CET instructions need to be removed after open CI update to > NASM 2.15.01. > The BZ ticket is https://bugzilla.tianocore.org/show_bug.cgi?id=3D3227 . >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3192 >=20 > Signed-off-by: Sheng Wei > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Cc: Jiewen Yao > --- > MdePkg/Include/Ia32/Nasm.inc | 12 ++++++++++++ > MdePkg/Include/X64/Nasm.inc | 12 ++++++++++++ > 2 files changed, 24 insertions(+) >=20 > diff --git a/MdePkg/Include/Ia32/Nasm.inc > b/MdePkg/Include/Ia32/Nasm.inc > index 31ce861f1e..fa42f9d3e9 100644 > --- a/MdePkg/Include/Ia32/Nasm.inc > +++ b/MdePkg/Include/Ia32/Nasm.inc > @@ -9,6 +9,18 @@ > ; > ;-------------------------------------------------------------------------= -- --- >=20 > +%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 > + > %macro SETSSBSY 0 > DB 0xF3, 0x0F, 0x01, 0xE8 > %endmacro > diff --git a/MdePkg/Include/X64/Nasm.inc b/MdePkg/Include/X64/Nasm.inc > index 42412735ea..e57a803c81 100644 > --- a/MdePkg/Include/X64/Nasm.inc > +++ b/MdePkg/Include/X64/Nasm.inc > @@ -9,6 +9,18 @@ > ; > ;-------------------------------------------------------------------------= -- --- >=20 > +%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 > + > %macro SETSSBSY 0 > DB 0xF3, 0x0F, 0x01, 0xE8 > %endmacro > -- > 2.16.2.windows.1 >=20 >=20 >=20 >=20 >=20