diff options
Diffstat (limited to 'roms/edk2/MdePkg/Library/BaseLib/X64/WriteCr3.nasm')
-rw-r--r-- | roms/edk2/MdePkg/Library/BaseLib/X64/WriteCr3.nasm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/roms/edk2/MdePkg/Library/BaseLib/X64/WriteCr3.nasm b/roms/edk2/MdePkg/Library/BaseLib/X64/WriteCr3.nasm new file mode 100644 index 000000000..fb0b5bad2 --- /dev/null +++ b/roms/edk2/MdePkg/Library/BaseLib/X64/WriteCr3.nasm @@ -0,0 +1,33 @@ +;------------------------------------------------------------------------------
+;
+; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; SPDX-License-Identifier: BSD-2-Clause-Patent
+;
+; Module Name:
+;
+; WriteCr3.Asm
+;
+; Abstract:
+;
+; AsmWriteCr3 function
+;
+; Notes:
+;
+;------------------------------------------------------------------------------
+
+ DEFAULT REL
+ SECTION .text
+
+;------------------------------------------------------------------------------
+; UINTN
+; EFIAPI
+; AsmWriteCr3 (
+; UINTN Cr3
+; );
+;------------------------------------------------------------------------------
+global ASM_PFX(AsmWriteCr3)
+ASM_PFX(AsmWriteCr3):
+ mov cr3, rcx
+ mov rax, rcx
+ ret
+
|