]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/EnablePaging64.asm
1. cleanup functions header in PeCoffLoaderEx.c
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / EnablePaging64.asm
index 0d64c5513453128a29a6870a1d2f2129bca84b02..459120a886cce71005364a05b89af7ce8394cb55 100644 (file)
 ;------------------------------------------------------------------------------\r
 InternalX86EnablePaging64 PROC\r
     cli\r
-    mov     dword ptr [rsp], @F         ; offset for far retf, seg is the 1st arg\r
+    pop     rax\r
+    call    @Base\r
+@Base:\r
+    add     dword ptr [rsp], @F - @Base ; offset for far retf, seg is the 1st arg\r
     mov     rax, cr4                    ; mov eax, cr4\r
     or      al, (1 SHL 5)\r
     mov     cr4, rax                    ; enable PAE\r