]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/SetJump.nasm
MdePkg: Replace Opcode with the corresponding instructions.
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / SetJump.nasm
index b491df896d9ccf41d87308a8e2ed917eaf95318c..5943a5ebe59fc8a6ceec10da6ee5c8140e80818f 100644 (file)
@@ -1,13 +1,7 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
-; This program and the accompanying materials\r
-; are licensed and made available under the terms and conditions of the BSD License\r
-; which accompanies this distribution.  The full text of the license may be found at\r
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>\r
+; SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ;\r
 ; Module Name:\r
 ;\r
@@ -54,8 +48,8 @@ ASM_PFX(SetJump):
     jnc     CetDone\r
 \r
     mov     rax, 1\r
-    INCSSP_RAX                           ; to read original SSP\r
-    READSSP_RAX\r
+    incsspq rax                          ; to read original SSP\r
+    rdsspq  rax\r
     mov     [rcx + 0xF8], rax            ; save SSP\r
 \r
 CetDone:\r