]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/LongJump.nasm
MdePkg: Replace Opcode with the corresponding instructions.
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / LongJump.nasm
index 59f70921692c55974a4c3cabb224fd62f80807e4..2002f65cba573269bffbaf6e64845b0b6e3b89e3 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>\r
 ; SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ;\r
 ; Module Name:\r
@@ -41,12 +41,12 @@ ASM_PFX(InternalLongJump):
     push    rdx                          ; save rdx\r
 \r
     mov     rdx, [rcx + 0xF8]            ; rdx = target SSP\r
-    READSSP_RAX\r
+    rdsspq  rax\r
     sub     rdx, rax                     ; rdx = delta\r
     mov     rax, rdx                     ; rax = delta\r
 \r
     shr     rax, 3                       ; rax = delta/sizeof(UINT64)\r
-    INCSSP_RAX\r
+    incsspq rax\r
 \r
     pop     rdx                          ; restore rdx\r
 CetDone:\r