]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/X64/Nasm.inc
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Include / X64 / Nasm.inc
index 528bb3385609854feffa42ee0743b00d00e79f33..bb77ca6c32da0aaa06bbb79b1bcce271b2b97a44 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2019 - 2022, Intel Corporation. All rights reserved.<BR>\r
 ; SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ;\r
 ; Abstract:\r
@@ -9,30 +9,6 @@
 ;\r
 ;------------------------------------------------------------------------------\r
 \r
-%macro SAVEPREVSSP     0\r
-    DB 0xF3, 0x0F, 0x01, 0xEA\r
-%endmacro\r
-\r
-%macro CLRSSBSY_RAX    0\r
-    DB 0xF3, 0x0F, 0xAE, 0x30\r
-%endmacro\r
-\r
-%macro RSTORSSP_RAX    0\r
-    DB 0xF3, 0x0F, 0x01, 0x28\r
-%endmacro\r
-\r
-%macro SETSSBSY        0\r
-    DB 0xF3, 0x0F, 0x01, 0xE8\r
-%endmacro\r
-\r
-%macro READSSP_RAX     0\r
-    DB 0xF3, 0x48, 0x0F, 0x1E, 0xC8\r
-%endmacro\r
-\r
-%macro INCSSP_RAX      0\r
-    DB 0xF3, 0x48, 0x0F, 0xAE, 0xE8\r
-%endmacro\r
-\r
 ;\r
 ; Macro for the PVALIDATE instruction, defined in AMD APM volume 3.\r
 ; NASM feature request URL: https://bugzilla.nasm.us/show_bug.cgi?id=3392753\r
     DB 0xF2, 0x0F, 0x01, 0xFF\r
 %endmacro\r
 \r
+;\r
+; Macro for the RMPADJUST instruction, defined in AMD APM volume 3.\r
+; NASM feature request URL: https://bugzilla.nasm.us/show_bug.cgi?id=3392754\r
+;\r
+%macro RMPADJUST       0\r
+    DB 0xF3, 0x0F, 0x01, 0xFE\r
+%endmacro\r
+\r
 ; NASM provides built-in macros STRUC and ENDSTRUC for structure definition.\r
 ; For example, to define a structure called mytype containing a longword,\r
 ; a word, a byte and a string of bytes, you might code\r