1.Fix .global issue in GAS (EdkT207).

2.Fix Label start with @ (EdkT208).

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1610 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2006-09-25 10:05:26 +00:00
parent 1a0d7262b4
commit b7089db120
130 changed files with 168 additions and 168 deletions

View File

@ -46,7 +46,7 @@
.section .rtcode, "ax", "progbits" .section .rtcode, "ax", "progbits"
.align 32 .align 32
.type InvalidateInstructionCacheRange# ,@function .type InvalidateInstructionCacheRange# ,@function
.global InvalidateInstructionCacheRange# .globl InvalidateInstructionCacheRange#
// Function compile flags: /Ogsy // Function compile flags: /Ogsy
.section .rtcode .section .rtcode

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathARShiftU64 .globl _InternalMathARShiftU64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -20,7 +20,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _CpuBreakpoint .globl _CpuBreakpoint
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -20,7 +20,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _CpuFlushTlb .globl _CpuFlushTlb
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -20,7 +20,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _CpuPause .globl _CpuPause
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -20,7 +20,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _CpuSleep .globl _CpuSleep
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _DisableInterrupts .globl _DisableInterrupts
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86DisablePaging32 .globl _InternalX86DisablePaging32
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathDivU64x32 .globl _InternalMathDivU64x32
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathDivRemU64x32 .globl _InternalMathDivRemU64x32
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -20,7 +20,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathDivRemU64x32, _InternalMathDivRemU64x64 .globl _InternalMathDivRemU64x32, _InternalMathDivRemU64x64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _EnableDisableInterrupts .globl _EnableDisableInterrupts
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _EnableInterrupts .globl _EnableInterrupts
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86EnablePaging32 .globl _InternalX86EnablePaging32
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86EnablePaging64 .globl _InternalX86EnablePaging64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmFlushCacheLine .globl _AsmFlushCacheLine
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86FxRestore .globl _InternalX86FxRestore
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86FxSave .globl _InternalX86FxSave
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalSyncCompareExchange32 .globl _InternalSyncCompareExchange32
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT32 # UINT32

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalSyncCompareExchange64 .globl _InternalSyncCompareExchange64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalSyncDecrement .globl _InternalSyncDecrement
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT32 # UINT32

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalSyncIncrement .globl _InternalSyncIncrement
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT32 # UINT32

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmInvd .globl _AsmInvd
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathLRotU64 .globl _InternalMathLRotU64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathLShiftU64 .globl _InternalMathLShiftU64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalLongJump .globl _InternalLongJump
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathModU64x32 .globl _InternalMathModU64x32
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT32 # UINT32

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmMonitor .globl _AsmMonitor
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -22,7 +22,7 @@
.386: .386:
.code: .code:
.global _InternalMathMultU64x32 .globl _InternalMathMultU64x32
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathMultU64x64 .globl _InternalMathMultU64x64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmMwait .globl _AsmMwait
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathRRotU64 .globl _InternalMathRRotU64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -22,7 +22,7 @@
.686: .686:
.code: .code:
.global _InternalMathRShiftU64 .globl _InternalMathRShiftU64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCr0 .globl _AsmReadCr0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCr2 .globl _AsmReadCr2
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCr3 .globl _AsmReadCr3
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCr4 .globl _AsmReadCr4
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCs .globl _AsmReadCs
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT16 # UINT16

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr0 .globl _AsmReadDr0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr1 .globl _AsmReadDr1
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr2 .globl _AsmReadDr2
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr3 .globl _AsmReadDr3
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr4 .globl _AsmReadDr4
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr5 .globl _AsmReadDr5
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr6 .globl _AsmReadDr6
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr7 .globl _AsmReadDr7
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDs .globl _AsmReadDs
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT16 # UINT16

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadEflags .globl _AsmReadEflags
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadEs .globl _AsmReadEs
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT16 # UINT16

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadFs .globl _AsmReadFs
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT16 # UINT16

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86ReadGdtr .globl _InternalX86ReadGdtr
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadGs .globl _AsmReadGs
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT16 # UINT16

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86ReadIdtr .globl _InternalX86ReadIdtr
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID # VOID

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadLdtr .globl _AsmReadLdtr
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT16 # UINT16

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm0 .globl _AsmReadMm0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm1 .globl _AsmReadMm1
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm2 .globl _AsmReadMm2
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm3 .globl _AsmReadMm3
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm4 .globl _AsmReadMm4
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm5 .globl _AsmReadMm5
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm6 .globl _AsmReadMm6
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm7 .globl _AsmReadMm7
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMsr64 .globl _AsmReadMsr64
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadPmc .globl _AsmReadPmc
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadSs .globl _AsmReadSs
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT16 # UINT16

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadTr .globl _AsmReadTr
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT16 # UINT16

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadTsc .globl _AsmReadTsc
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINT64 # UINT64

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _SetJump, _InternalAssertJumpBuffer .globl _SetJump, _InternalAssertJumpBuffer
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# UINTN # UINTN

View File

@ -29,7 +29,7 @@
# IN UINT64 Operand # IN UINT64 Operand
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMathSwapBytes64 .globl _InternalMathSwapBytes64
_InternalMathSwapBytes64: _InternalMathSwapBytes64:
movl 8(%esp), %eax movl 8(%esp), %eax
movl 4(%esp), %edx movl 4(%esp), %edx

View File

@ -19,8 +19,8 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _m16Start, _m16Size, _mThunk16Attr, _m16Gdt, _m16GdtrBase, _mTransition .globl _m16Start, _m16Size, _mThunk16Attr, _m16Gdt, _m16GdtrBase, _mTransition
.global _InternalAsmThunk16 .globl _InternalAsmThunk16
_m16Start: _m16Start:
@ -30,8 +30,8 @@ _BackFromUserCode:
push %ss push %ss
push %cs push %cs
.byte 0x66 .byte 0x66
call @Base1 # push eip call L_Base1 # push eip
@Base1: L_Base1:
pushfw # pushfd actually pushfw # pushfd actually
cli # disable interrupts cli # disable interrupts
push %gs push %gs
@ -39,20 +39,20 @@ _BackFromUserCode:
push %es push %es
push %ds push %ds
pushaw # pushad actually pushaw # pushad actually
.byte 0x66, 0xba # mov edx, imm32 .byte 0x66, 0xba # mov edx, imm32
_ThunkAttr: .space 4 _ThunkAttr: .space 4
testb $THUNK_ATTRIBUTE_DISABLE_A20_MASK_INT_15, %dl testb $THUNK_ATTRIBUTE_DISABLE_A20_MASK_INT_15, %dl
jz @1 jz 1f
movl $0x15cd2401, %eax # mov ax, 2401h & int 15h movl $0x15cd2401, %eax # mov ax, 2401h & int 15h
cli # disable interrupts cli # disable interrupts
jnc @2 jnc 2f
@1: 1:
testb $THUNK_ATTRIBUTE_DISABLE_A20_MASK_KBD_CTRL, %dl testb $THUNK_ATTRIBUTE_DISABLE_A20_MASK_KBD_CTRL, %dl
jz @2 jz 2f
inb $0x92, %al inb $0x92, %al
orb $2, %al orb $2, %al
outb %al, $0x92 # deactivate A20M# outb %al, $0x92 # deactivate A20M#
@2: 2:
movl %ss, %eax movl %ss, %eax
.byte 0x67, 0x66, 0x8d, 0x6c, 0x24, 0x34, 0x66 .byte 0x67, 0x66, 0x8d, 0x6c, 0x24, 0x34, 0x66
mov %ebp, 0xffffffd8(%esi) mov %ebp, 0xffffffd8(%esi)
@ -93,16 +93,16 @@ _ToUserCode:
movl %esi, %ss # set up 16-bit stack segment movl %esi, %ss # set up 16-bit stack segment
xchgw %bx, %sp # set up 16-bit stack pointer xchgw %bx, %sp # set up 16-bit stack pointer
.byte 0x66 .byte 0x66
call @Base # push eip call L_Base # push eip
@Base: L_Base:
popw %bp # ebp <- offset @Base popw %bp # ebp <- offset L_Base
addr16 pushl 36(%si) addr16 pushl 36(%si)
.byte 0x36 .byte 0x36
lea 0xc(%esi), %eax lea 0xc(%esi), %eax
push %eax push %eax
lret lret
@RealMode: L_RealMode:
mov %edx, %cs:0xffffffc5(%esi) mov %edx, %cs:0xffffffc5(%esi)
mov %bx, %cs:0xffffffcb(%esi) mov %bx, %cs:0xffffffcb(%esi)
lidtw %cs:0xffffffd7(%esi) lidtw %cs:0xffffffd7(%esi)

View File

@ -28,7 +28,7 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWbinvd .globl _AsmWbinvd
_AsmWbinvd: _AsmWbinvd:
wbinvd wbinvd
ret ret

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -17,7 +17,7 @@
.auto .auto
.text .text
.global PalCallStatic .globl PalCallStatic
.type PalCallStatic, @function .type PalCallStatic, @function
.proc CpuFlushTlb .proc CpuFlushTlb

View File

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

View File

@ -27,7 +27,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMemCompareMem .globl _InternalMemCompareMem
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# INTN # INTN

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMemCopyMem .globl _InternalMemCopyMem
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID * # VOID *
@ -42,7 +42,7 @@ _InternalMemCopyMem:
cmpl %edi, %esi cmpl %edi, %esi
jae L0 jae L0
cmpl %edi, %eax # Overlapped? cmpl %edi, %eax # Overlapped?
jae @CopyBackward # Copy backward if overlapped jae L_CopyBackward # Copy backward if overlapped
L0: L0:
xorl %ecx, %ecx xorl %ecx, %ecx
subl %esi, %ecx subl %esi, %ecx
@ -57,7 +57,7 @@ L1:
movl %edx, %ecx movl %edx, %ecx
andl $7, %edx andl $7, %edx
shrl $3, %ecx # ecx <- # of Qwords to copy shrl $3, %ecx # ecx <- # of Qwords to copy
jz @CopyBytes jz L_CopyBytes
pushl %eax pushl %eax
pushl %eax pushl %eax
movq %mm0, (%esp) # save mm0 movq %mm0, (%esp) # save mm0
@ -70,12 +70,12 @@ L2:
movq (%esp), %mm0 # restore mm0 movq (%esp), %mm0 # restore mm0
popl %ecx # stack cleanup popl %ecx # stack cleanup
popl %ecx # stack cleanup popl %ecx # stack cleanup
jmp @CopyBytes jmp L_CopyBytes
@CopyBackward: L_CopyBackward:
movl %eax, %esi # esi <- Last byte in Source movl %eax, %esi # esi <- Last byte in Source
leal -1(%edi,%edx,), %edi # edi <- Last byte in Destination leal -1(%edi,%edx,), %edi # edi <- Last byte in Destination
std std
@CopyBytes: L_CopyBytes:
movl %edx, %ecx movl %edx, %ecx
rep rep
movsb movsb

View File

@ -27,7 +27,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalMemScanMem16 .globl _InternalMemScanMem16
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# CONST VOID * # CONST VOID *

Some files were not shown because too many files have changed in this diff Show More