]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/Thunk16.S
Replace .globl with ASM_GLOBAL
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / Thunk16.S
index f9770b258cb50f167f4ed7610b792c72119d1701..a1af5128f25ebee9770c95661393a1ad553c3df5 100644 (file)
 \r
 #include <Library/BaseLib.h>\r
 \r
-.globl ASM_PFX(m16Start)\r
-.globl ASM_PFX(m16Size)\r
-.globl ASM_PFX(mThunk16Attr)\r
-.globl ASM_PFX(m16Gdt)\r
-.globl ASM_PFX(m16GdtrBase)\r
-.globl ASM_PFX(mTransition)\r
-.globl ASM_PFX(InternalAsmThunk16)\r
+ASM_GLOBAL ASM_PFX(m16Start)\r
+ASM_GLOBAL ASM_PFX(m16Size)\r
+ASM_GLOBAL ASM_PFX(mThunk16Attr)\r
+ASM_GLOBAL ASM_PFX(m16Gdt)\r
+ASM_GLOBAL ASM_PFX(m16GdtrBase)\r
+ASM_GLOBAL ASM_PFX(mTransition)\r
+ASM_GLOBAL ASM_PFX(InternalAsmThunk16)\r
 \r
 # define the structure of IA32_REGS\r
 .equ  _EDI, 0       #size 4\r
@@ -66,7 +66,7 @@ SavedGdt:    .space 10
 # _BackFromUserCode() takes control in real mode after 'retf' has been executed\r
 # by user code. It will be shadowed to somewhere in memory below 1MB.\r
 #------------------------------------------------------------------------------\r
-.globl ASM_PFX(BackFromUserCode)\r
+ASM_GLOBAL ASM_PFX(BackFromUserCode)\r
 ASM_PFX(BackFromUserCode):\r
     #\r
     # The order of saved registers on the stack matches the order they appears\r
@@ -156,7 +156,7 @@ _16Idtr:     .word      0x3ff
 # _ToUserCode() takes control in real mode before passing control to user code.\r
 # It will be shadowed to somewhere in memory below 1MB.\r
 #------------------------------------------------------------------------------\r
-.globl ASM_PFX(ToUserCode)\r
+ASM_GLOBAL ASM_PFX(ToUserCode)\r
 ASM_PFX(ToUserCode):\r
     movl    %edx,%ss                    # set new segment selectors\r
     movl    %edx,%ds\r
@@ -231,7 +231,7 @@ ASM_PFX(_32Data):
 #   );\r
 #------------------------------------------------------------------------------\r
 \r
-.globl ASM_PFX(InternalAsmThunk16)\r
+ASM_GLOBAL ASM_PFX(InternalAsmThunk16)\r
 ASM_PFX(InternalAsmThunk16):\r
     pushq   %rbp\r
     pushq   %rbx\r
@@ -293,12 +293,12 @@ L_RetFromRealMode:
     .byte 0x0f, 0xa9                    # pop gs\r
     .byte 0x0f, 0xa1                    # pop fs\r
     \r
-    popq     %rbx
-    movq     %rbx, %ss
-    popq     %rbx
-    movq     %rbx, %es
-    popq     %rbx
-    movq     %rbx, %ds
+    popq     %rbx\r
+    movq     %rbx, %ss\r
+    popq     %rbx\r
+    movq     %rbx, %es\r
+    popq     %rbx\r
+    movq     %rbx, %ds\r
     \r
     popq    %rdi\r
     popq    %rsi\r