]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/EnablePaging64.S
Update the Guid Value of Ext SCSI Pass Thru Protocol
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / EnablePaging64.S
index 37584799803e8e9301578f03338a3d6f1d1fd52e..ffa9beb0a1544b6b28b701605fc9b716217d57f3 100644 (file)
@@ -21,9 +21,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 \r
-     \r
-    #.MODEL flat\r
-     \r
+.globl ASM_PFX(InternalX86EnablePaging64)\r
 \r
 #------------------------------------------------------------------------------\r
 # VOID\r
@@ -36,8 +34,7 @@
 #   IN      UINT64                    NewStack\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global _InternalX86EnablePaging64\r
-_InternalX86EnablePaging64:\r
+ASM_PFX(InternalX86EnablePaging64):\r
     cli\r
     movl    $LongStart, (%esp)\r
     movl    %cr4, %eax\r
@@ -52,13 +49,13 @@ _InternalX86EnablePaging64:
     movl    %eax, %cr0                  # enable paging\r
     lret\r
 LongStart:                              # long mode starts here\r
-    .byte   0x67,0x48\r
+    .byte   0x67, 0x48\r
     movl    (%esp), %ebx                # mov rbx, [esp]\r
-    .byte   0x67,0x48\r
+    .byte   0x67, 0x48\r
     movl    8(%esp), %ecx               # mov rcx, [esp + 8]\r
-    .byte   0x67,0x48\r
+    .byte   0x67, 0x48\r
     movl    0x10(%esp), %edx            # mov rdx, [esp + 10h]\r
-    .byte   0x67,0x48\r
+    .byte   0x67, 0x48\r
     movl    0x18(%esp), %esp            # mov rsp, [esp + 18h]\r
     .byte   0x48\r
     addl    $0x-20, %esp                # add rsp, -20h\r