]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/DisablePaging64.nasm
MdePkg: Replace Opcode with the corresponding instructions.
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / DisablePaging64.nasm
index c76ed1a76c85c74aafc8b6e0a1e1ff2357c19ea0..200c408d9abd72b52de5952b45fd57fb23efac2f 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006 - 2008, 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
@@ -51,8 +51,7 @@ ASM_PFX(InternalX86DisablePaging64):
     sub     eax, 4                      ; eax <- One slot below transition code on the stack\r
     push    rcx                         ; push Cs to stack\r
     push    r10                         ; push address of tansition code on stack\r
-    DB      0x48                         ; prefix to composite "retq" with next "retf"\r
-    retf                                ; Use far return to load CS register from stack\r
+    retfq\r
 \r
 ; Start of transition code\r
 .0:\r