Replace .globl with ASM_GLOBAL

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8346 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24
2009-05-20 10:22:09 +00:00
parent b20d41df13
commit 132f41f0a9
219 changed files with 267 additions and 267 deletions

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathARShiftU64)
ASM_GLOBAL ASM_PFX(InternalMathARShiftU64)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -20,7 +20,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(CpuBreakpoint)
ASM_GLOBAL ASM_PFX(CpuBreakpoint)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmCpuid)
ASM_GLOBAL ASM_PFX(AsmCpuid)
#------------------------------------------------------------------------------
# VOID

View File

@@ -36,7 +36,7 @@
# OUT UINT32 *RegisterOutEdx OPTIONAL
# )
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmCpuidEx)
ASM_GLOBAL ASM_PFX(AsmCpuidEx)
ASM_PFX(AsmCpuidEx):
push %ebx
push %ebp

View File

@@ -20,7 +20,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(CpuPause)
ASM_GLOBAL ASM_PFX(CpuPause)
#------------------------------------------------------------------------------
# VOID

View File

@@ -29,7 +29,7 @@
# VOID
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmDisableCache)
ASM_GLOBAL ASM_PFX(AsmDisableCache)
ASM_PFX(AsmDisableCache):
movl %cr0, %eax
btsl $30, %eax

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(DisableInterrupts)
ASM_GLOBAL ASM_PFX(DisableInterrupts)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalX86DisablePaging32)
ASM_GLOBAL ASM_PFX(InternalX86DisablePaging32)
#------------------------------------------------------------------------------
# VOID

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathDivU64x32)
ASM_GLOBAL ASM_PFX(InternalMathDivU64x32)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathDivRemU64x32)
ASM_GLOBAL ASM_PFX(InternalMathDivRemU64x32)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -20,7 +20,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathDivRemU64x32), ASM_PFX(InternalMathDivRemU64x64)
ASM_GLOBAL ASM_PFX(InternalMathDivRemU64x32), ASM_PFX(InternalMathDivRemU64x64)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -29,7 +29,7 @@
# VOID
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmEnableCache)
ASM_GLOBAL ASM_PFX(AsmEnableCache)
ASM_PFX(AsmEnableCache):
wbinvd
movl %cr0, %eax

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(EnableDisableInterrupts)
ASM_GLOBAL ASM_PFX(EnableDisableInterrupts)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(EnableInterrupts)
ASM_GLOBAL ASM_PFX(EnableInterrupts)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalX86EnablePaging32)
ASM_GLOBAL ASM_PFX(InternalX86EnablePaging32)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalX86EnablePaging64)
ASM_GLOBAL ASM_PFX(InternalX86EnablePaging64)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmFlushCacheLine)
ASM_GLOBAL ASM_PFX(AsmFlushCacheLine)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalX86FxRestore)
ASM_GLOBAL ASM_PFX(InternalX86FxRestore)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalX86FxSave)
ASM_GLOBAL ASM_PFX(InternalX86FxSave)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmInvd)
ASM_GLOBAL ASM_PFX(AsmInvd)
#------------------------------------------------------------------------------
# VOID

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathLRotU64)
ASM_GLOBAL ASM_PFX(InternalMathLRotU64)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathLShiftU64)
ASM_GLOBAL ASM_PFX(InternalMathLShiftU64)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalLongJump)
ASM_GLOBAL ASM_PFX(InternalLongJump)
#------------------------------------------------------------------------------
# VOID

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathModU64x32)
ASM_GLOBAL ASM_PFX(InternalMathModU64x32)
#------------------------------------------------------------------------------
# UINT32

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmMonitor)
ASM_GLOBAL ASM_PFX(AsmMonitor)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -22,7 +22,7 @@
.386:
.code:
.globl ASM_PFX(InternalMathMultU64x32)
ASM_GLOBAL ASM_PFX(InternalMathMultU64x32)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathMultU64x64)
ASM_GLOBAL ASM_PFX(InternalMathMultU64x64)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmMwait)
ASM_GLOBAL ASM_PFX(AsmMwait)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathRRotU64)
ASM_GLOBAL ASM_PFX(InternalMathRRotU64)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -22,7 +22,7 @@
.686:
.code:
.globl ASM_PFX(InternalMathRShiftU64)
ASM_GLOBAL ASM_PFX(InternalMathRShiftU64)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadCr0)
ASM_GLOBAL ASM_PFX(AsmReadCr0)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadCr2)
ASM_GLOBAL ASM_PFX(AsmReadCr2)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadCr3)
ASM_GLOBAL ASM_PFX(AsmReadCr3)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadCr4)
ASM_GLOBAL ASM_PFX(AsmReadCr4)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadCs)
ASM_GLOBAL ASM_PFX(AsmReadCs)
#------------------------------------------------------------------------------
# UINT16

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadDr0)
ASM_GLOBAL ASM_PFX(AsmReadDr0)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadDr1)
ASM_GLOBAL ASM_PFX(AsmReadDr1)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadDr2)
ASM_GLOBAL ASM_PFX(AsmReadDr2)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadDr3)
ASM_GLOBAL ASM_PFX(AsmReadDr3)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadDr4)
ASM_GLOBAL ASM_PFX(AsmReadDr4)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadDr5)
ASM_GLOBAL ASM_PFX(AsmReadDr5)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadDr6)
ASM_GLOBAL ASM_PFX(AsmReadDr6)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadDr7)
ASM_GLOBAL ASM_PFX(AsmReadDr7)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadDs)
ASM_GLOBAL ASM_PFX(AsmReadDs)
#------------------------------------------------------------------------------
# UINT16

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadEflags)
ASM_GLOBAL ASM_PFX(AsmReadEflags)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadEs)
ASM_GLOBAL ASM_PFX(AsmReadEs)
#------------------------------------------------------------------------------
# UINT16

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadFs)
ASM_GLOBAL ASM_PFX(AsmReadFs)
#------------------------------------------------------------------------------
# UINT16

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalX86ReadGdtr)
ASM_GLOBAL ASM_PFX(InternalX86ReadGdtr)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadGs)
ASM_GLOBAL ASM_PFX(AsmReadGs)
#------------------------------------------------------------------------------
# UINT16

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalX86ReadIdtr)
ASM_GLOBAL ASM_PFX(InternalX86ReadIdtr)
#------------------------------------------------------------------------------
# VOID

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadLdtr)
ASM_GLOBAL ASM_PFX(AsmReadLdtr)
#------------------------------------------------------------------------------
# UINT16

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadMm0)
ASM_GLOBAL ASM_PFX(AsmReadMm0)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadMm1)
ASM_GLOBAL ASM_PFX(AsmReadMm1)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadMm2)
ASM_GLOBAL ASM_PFX(AsmReadMm2)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadMm3)
ASM_GLOBAL ASM_PFX(AsmReadMm3)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadMm4)
ASM_GLOBAL ASM_PFX(AsmReadMm4)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadMm5)
ASM_GLOBAL ASM_PFX(AsmReadMm5)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadMm6)
ASM_GLOBAL ASM_PFX(AsmReadMm6)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadMm7)
ASM_GLOBAL ASM_PFX(AsmReadMm7)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadMsr64)
ASM_GLOBAL ASM_PFX(AsmReadMsr64)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadPmc)
ASM_GLOBAL ASM_PFX(AsmReadPmc)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadSs)
ASM_GLOBAL ASM_PFX(AsmReadSs)
#------------------------------------------------------------------------------
# UINT16

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadTr)
ASM_GLOBAL ASM_PFX(AsmReadTr)
#------------------------------------------------------------------------------
# UINT16

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmReadTsc)
ASM_GLOBAL ASM_PFX(AsmReadTsc)
#------------------------------------------------------------------------------
# UINT64

View File

@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
.globl ASM_PFX(SetJump), ASM_PFX(InternalAssertJumpBuffer)
ASM_GLOBAL ASM_PFX(SetJump), ASM_PFX(InternalAssertJumpBuffer)
#------------------------------------------------------------------------------
# UINTN

View File

@@ -29,7 +29,7 @@
# IN UINT64 Operand
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalMathSwapBytes64)
ASM_GLOBAL ASM_PFX(InternalMathSwapBytes64)
ASM_PFX(InternalMathSwapBytes64):
movl 8(%esp), %eax # eax <- upper 32 bits
movl 4(%esp), %edx # edx <- lower 32 bits

View File

@@ -21,8 +21,8 @@
#include <Library/BaseLib.h>
.globl ASM_PFX(m16Start), ASM_PFX(m16Size), ASM_PFX(mThunk16Attr), ASM_PFX(m16Gdt), ASM_PFX(m16GdtrBase), ASM_PFX(mTransition)
.globl ASM_PFX(InternalAsmThunk16)
ASM_GLOBAL ASM_PFX(m16Start), ASM_PFX(m16Size), ASM_PFX(mThunk16Attr), ASM_PFX(m16Gdt), ASM_PFX(m16GdtrBase), ASM_PFX(mTransition)
ASM_GLOBAL ASM_PFX(InternalAsmThunk16)
ASM_PFX(m16Start):

View File

@@ -28,7 +28,7 @@
# VOID
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWbinvd)
ASM_GLOBAL ASM_PFX(AsmWbinvd)
ASM_PFX(AsmWbinvd):
wbinvd
ret

View File

@@ -28,7 +28,7 @@
# IN UINTN Cr0
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteCr0)
ASM_GLOBAL ASM_PFX(AsmWriteCr0)
ASM_PFX(AsmWriteCr0):
movl 4(%esp), %eax
movl %eax, %cr0

View File

@@ -28,7 +28,7 @@
# IN UINTN Cr2
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteCr2)
ASM_GLOBAL ASM_PFX(AsmWriteCr2)
ASM_PFX(AsmWriteCr2):
movl 4(%esp), %eax
movl %eax, %cr2

View File

@@ -28,7 +28,7 @@
# IN UINTN Cr3
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteCr3)
ASM_GLOBAL ASM_PFX(AsmWriteCr3)
ASM_PFX(AsmWriteCr3):
movl 4(%esp), %eax
movl %eax, %cr3

View File

@@ -28,7 +28,7 @@
# IN UINTN Cr4
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteCr4)
ASM_GLOBAL ASM_PFX(AsmWriteCr4)
ASM_PFX(AsmWriteCr4):
movl 4(%esp), %eax
movl %eax, %cr4

View File

@@ -28,7 +28,7 @@
# IN UINTN Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteDr0)
ASM_GLOBAL ASM_PFX(AsmWriteDr0)
ASM_PFX(AsmWriteDr0):
movl 4(%esp), %eax
movl %eax, %dr0

View File

@@ -28,7 +28,7 @@
# IN UINTN Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteDr1)
ASM_GLOBAL ASM_PFX(AsmWriteDr1)
ASM_PFX(AsmWriteDr1):
movl 4(%esp), %eax
movl %eax, %dr1

View File

@@ -28,7 +28,7 @@
# IN UINTN Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteDr2)
ASM_GLOBAL ASM_PFX(AsmWriteDr2)
ASM_PFX(AsmWriteDr2):
movl 4(%esp), %eax
movl %eax, %dr2

View File

@@ -28,7 +28,7 @@
# IN UINTN Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteDr3)
ASM_GLOBAL ASM_PFX(AsmWriteDr3)
ASM_PFX(AsmWriteDr3):
movl 4(%esp), %eax
movl %eax, %dr3

View File

@@ -28,7 +28,7 @@
# IN UINTN Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteDr4)
ASM_GLOBAL ASM_PFX(AsmWriteDr4)
ASM_PFX(AsmWriteDr4):
movl 4(%esp), %eax
movl %eax, %dr4

View File

@@ -28,7 +28,7 @@
# IN UINTN Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteDr5)
ASM_GLOBAL ASM_PFX(AsmWriteDr5)
ASM_PFX(AsmWriteDr5):
movl 4(%esp), %eax
movl %eax, %dr5

View File

@@ -28,7 +28,7 @@
# IN UINTN Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteDr6)
ASM_GLOBAL ASM_PFX(AsmWriteDr6)
ASM_PFX(AsmWriteDr6):
movl 4(%esp), %eax
movl %eax, %dr6

View File

@@ -28,7 +28,7 @@
# IN UINTN Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteDr7)
ASM_GLOBAL ASM_PFX(AsmWriteDr7)
ASM_PFX(AsmWriteDr7):
movl 4(%esp), %eax
movl %eax, %dr7

View File

@@ -28,7 +28,7 @@
# OUT IA32_DESCRIPTOR *Gdtr
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalX86WriteGdtr)
ASM_GLOBAL ASM_PFX(InternalX86WriteGdtr)
ASM_PFX(InternalX86WriteGdtr):
movl 4(%esp), %eax
lgdt (%eax)

View File

@@ -28,7 +28,7 @@
# OUT IA32_DESCRIPTOR *Idtr
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(InternalX86WriteIdtr)
ASM_GLOBAL ASM_PFX(InternalX86WriteIdtr)
ASM_PFX(InternalX86WriteIdtr):
movl 4(%esp), %eax
lidt (%eax)

View File

@@ -28,7 +28,7 @@
# IN UINT16 Ldtr
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteLdtr)
ASM_GLOBAL ASM_PFX(AsmWriteLdtr)
ASM_PFX(AsmWriteLdtr):
movl 4(%esp), %eax
lldtw %ax

View File

@@ -28,7 +28,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteMm0)
ASM_GLOBAL ASM_PFX(AsmWriteMm0)
ASM_PFX(AsmWriteMm0):
movq 4(%esp), %mm0
ret

View File

@@ -28,7 +28,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteMm1)
ASM_GLOBAL ASM_PFX(AsmWriteMm1)
ASM_PFX(AsmWriteMm1):
movq 4(%esp), %mm1
ret

View File

@@ -28,7 +28,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteMm2)
ASM_GLOBAL ASM_PFX(AsmWriteMm2)
ASM_PFX(AsmWriteMm2):
movq 4(%esp), %mm2
ret

View File

@@ -28,7 +28,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteMm3)
ASM_GLOBAL ASM_PFX(AsmWriteMm3)
ASM_PFX(AsmWriteMm3):
movq 4(%esp), %mm3
ret

View File

@@ -28,7 +28,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteMm4)
ASM_GLOBAL ASM_PFX(AsmWriteMm4)
ASM_PFX(AsmWriteMm4):
movq 4(%esp), %mm4
ret

View File

@@ -28,7 +28,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteMm5)
ASM_GLOBAL ASM_PFX(AsmWriteMm5)
ASM_PFX(AsmWriteMm5):
movq 4(%esp), %mm5
ret

View File

@@ -28,7 +28,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteMm6)
ASM_GLOBAL ASM_PFX(AsmWriteMm6)
ASM_PFX(AsmWriteMm6):
movq 4(%esp), %mm6
ret

View File

@@ -28,7 +28,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteMm7)
ASM_GLOBAL ASM_PFX(AsmWriteMm7)
ASM_PFX(AsmWriteMm7):
movq 4(%esp), %mm7
ret

View File

@@ -29,7 +29,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmWriteMsr64)
ASM_GLOBAL ASM_PFX(AsmWriteMsr64)
ASM_PFX(AsmWriteMsr64):
movl 12(%esp), %edx
movl 8(%esp), %eax

View File

@@ -17,7 +17,7 @@
.auto
.text
.globl InternalAssertJumpBuffer
ASM_GLOBAL InternalAssertJumpBuffer
.type InternalAssertJumpBuffer, @function
.proc SetJump

View File

@@ -29,7 +29,7 @@
# VOID
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmDisableCache)
ASM_GLOBAL ASM_PFX(AsmDisableCache)
ASM_PFX(AsmDisableCache):
movq %cr0, %rax
btsq $30, %rax

View File

@@ -29,7 +29,7 @@
# VOID
# );
#------------------------------------------------------------------------------
.globl ASM_PFX(AsmEnableCache)
ASM_GLOBAL ASM_PFX(AsmEnableCache)
ASM_PFX(AsmEnableCache):
wbinvd
movq %cr0, %rax

View File

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