]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/ia32/EnablePaging64.asm
Rename dirs
[mirror_edk2.git] / MdePkg / Library / BaseLib / ia32 / EnablePaging64.asm
diff --git a/MdePkg/Library/BaseLib/ia32/EnablePaging64.asm b/MdePkg/Library/BaseLib/ia32/EnablePaging64.asm
deleted file mode 100644 (file)
index 6c9b0ea..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, Intel Corporation\r
-; All rights reserved. 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
-;\r
-; Module Name:\r
-;\r
-;   EnablePaging64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmEnablePaging64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686p\r
-    .model  flat,C\r
-    .code\r
-\r
-InternalX86EnablePaging64 PROC\r
-    cli\r
-    mov     [esp], @F                   ; offset for far retf\r
-    mov     eax, cr4\r
-    or      al, (1 SHL 5)\r
-    mov     cr4, eax                    ; enable PAE\r
-    mov     ecx, 0c0000080h\r
-    rdmsr\r
-    or      ah, 1                       ; set LME\r
-    wrmsr\r
-    mov     eax, cr0\r
-    bts     eax, 31\r
-    mov     cr0, eax                    ; enable paging\r
-    retf\r
-@@:                                     ; long mode starts here\r
-    DB      67h, 48h\r
-    mov     ebx, [esp]                  ; mov rbx, [esp]\r
-    DB      67h, 48h\r
-    mov     ecx, [esp + 8]              ; mov rcx, [esp + 8]\r
-    DB      67h, 48h\r
-    mov     edx, [esp + 10h]            ; mov rdx, [esp + 10h]\r
-    DB      67h, 48h\r
-    mov     esp, [esp + 18h]            ; mov rsp, [esp + 18h]\r
-    DB      48h\r
-    add     esp, -20h                   ; add rsp, -20h\r
-    call    ebx                         ; call rbx\r
-    jmp     $\r
-InternalX86EnablePaging64 ENDP\r
-\r
-    END\r