X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FX64%2FNasm.inc;h=bb77ca6c32da0aaa06bbb79b1bcce271b2b97a44;hp=528bb3385609854feffa42ee0743b00d00e79f33;hb=HEAD;hpb=5a7cbd54a161dd135381d753758269189200013c diff --git a/MdePkg/Include/X64/Nasm.inc b/MdePkg/Include/X64/Nasm.inc index 528bb33856..bb77ca6c32 100644 --- a/MdePkg/Include/X64/Nasm.inc +++ b/MdePkg/Include/X64/Nasm.inc @@ -1,6 +1,6 @@ ;------------------------------------------------------------------------------ ; -; Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.
+; Copyright (c) 2019 - 2022, Intel Corporation. All rights reserved.
; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Abstract: @@ -9,30 +9,6 @@ ; ;------------------------------------------------------------------------------ -%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 - -%macro READSSP_RAX 0 - DB 0xF3, 0x48, 0x0F, 0x1E, 0xC8 -%endmacro - -%macro INCSSP_RAX 0 - DB 0xF3, 0x48, 0x0F, 0xAE, 0xE8 -%endmacro - ; ; Macro for the PVALIDATE instruction, defined in AMD APM volume 3. ; NASM feature request URL: https://bugzilla.nasm.us/show_bug.cgi?id=3392753 @@ -41,6 +17,14 @@ DB 0xF2, 0x0F, 0x01, 0xFF %endmacro +; +; Macro for the RMPADJUST instruction, defined in AMD APM volume 3. +; NASM feature request URL: https://bugzilla.nasm.us/show_bug.cgi?id=3392754 +; +%macro RMPADJUST 0 + DB 0xF3, 0x0F, 0x01, 0xFE +%endmacro + ; NASM provides built-in macros STRUC and ENDSTRUC for structure definition. ; For example, to define a structure called mytype containing a longword, ; a word, a byte and a string of bytes, you might code