mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 09:04:07 +02:00
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:
parent
1a0d7262b4
commit
b7089db120
@ -46,7 +46,7 @@
|
||||
.section .rtcode, "ax", "progbits"
|
||||
.align 32
|
||||
.type InvalidateInstructionCacheRange# ,@function
|
||||
.global InvalidateInstructionCacheRange#
|
||||
.globl InvalidateInstructionCacheRange#
|
||||
// Function compile flags: /Ogsy
|
||||
.section .rtcode
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMathARShiftU64
|
||||
.globl _InternalMathARShiftU64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -20,7 +20,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _CpuBreakpoint
|
||||
.globl _CpuBreakpoint
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -20,7 +20,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _CpuFlushTlb
|
||||
.globl _CpuFlushTlb
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -20,7 +20,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _CpuPause
|
||||
.globl _CpuPause
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -20,7 +20,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _CpuSleep
|
||||
.globl _CpuSleep
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _DisableInterrupts
|
||||
.globl _DisableInterrupts
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalX86DisablePaging32
|
||||
.globl _InternalX86DisablePaging32
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMathDivU64x32
|
||||
.globl _InternalMathDivU64x32
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMathDivRemU64x32
|
||||
.globl _InternalMathDivRemU64x32
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -20,7 +20,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMathDivRemU64x32, _InternalMathDivRemU64x64
|
||||
.globl _InternalMathDivRemU64x32, _InternalMathDivRemU64x64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _EnableDisableInterrupts
|
||||
.globl _EnableDisableInterrupts
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _EnableInterrupts
|
||||
.globl _EnableInterrupts
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalX86EnablePaging32
|
||||
.globl _InternalX86EnablePaging32
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalX86EnablePaging64
|
||||
.globl _InternalX86EnablePaging64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmFlushCacheLine
|
||||
.globl _AsmFlushCacheLine
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalX86FxRestore
|
||||
.globl _InternalX86FxRestore
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalX86FxSave
|
||||
.globl _InternalX86FxSave
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalSyncCompareExchange32
|
||||
.globl _InternalSyncCompareExchange32
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT32
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalSyncCompareExchange64
|
||||
.globl _InternalSyncCompareExchange64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalSyncDecrement
|
||||
.globl _InternalSyncDecrement
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT32
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalSyncIncrement
|
||||
.globl _InternalSyncIncrement
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT32
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmInvd
|
||||
.globl _AsmInvd
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMathLRotU64
|
||||
.globl _InternalMathLRotU64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMathLShiftU64
|
||||
.globl _InternalMathLShiftU64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalLongJump
|
||||
.globl _InternalLongJump
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMathModU64x32
|
||||
.globl _InternalMathModU64x32
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT32
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmMonitor
|
||||
.globl _AsmMonitor
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -22,7 +22,7 @@
|
||||
.386:
|
||||
.code:
|
||||
|
||||
.global _InternalMathMultU64x32
|
||||
.globl _InternalMathMultU64x32
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMathMultU64x64
|
||||
.globl _InternalMathMultU64x64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmMwait
|
||||
.globl _AsmMwait
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMathRRotU64
|
||||
.globl _InternalMathRRotU64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -22,7 +22,7 @@
|
||||
.686:
|
||||
.code:
|
||||
|
||||
.global _InternalMathRShiftU64
|
||||
.globl _InternalMathRShiftU64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadCr0
|
||||
.globl _AsmReadCr0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadCr2
|
||||
.globl _AsmReadCr2
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadCr3
|
||||
.globl _AsmReadCr3
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadCr4
|
||||
.globl _AsmReadCr4
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadCs
|
||||
.globl _AsmReadCs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT16
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadDr0
|
||||
.globl _AsmReadDr0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadDr1
|
||||
.globl _AsmReadDr1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadDr2
|
||||
.globl _AsmReadDr2
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadDr3
|
||||
.globl _AsmReadDr3
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadDr4
|
||||
.globl _AsmReadDr4
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadDr5
|
||||
.globl _AsmReadDr5
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadDr6
|
||||
.globl _AsmReadDr6
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadDr7
|
||||
.globl _AsmReadDr7
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadDs
|
||||
.globl _AsmReadDs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT16
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadEflags
|
||||
.globl _AsmReadEflags
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadEs
|
||||
.globl _AsmReadEs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT16
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadFs
|
||||
.globl _AsmReadFs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT16
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalX86ReadGdtr
|
||||
.globl _InternalX86ReadGdtr
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadGs
|
||||
.globl _AsmReadGs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT16
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalX86ReadIdtr
|
||||
.globl _InternalX86ReadIdtr
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadLdtr
|
||||
.globl _AsmReadLdtr
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT16
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadMm0
|
||||
.globl _AsmReadMm0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadMm1
|
||||
.globl _AsmReadMm1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadMm2
|
||||
.globl _AsmReadMm2
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadMm3
|
||||
.globl _AsmReadMm3
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadMm4
|
||||
.globl _AsmReadMm4
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadMm5
|
||||
.globl _AsmReadMm5
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadMm6
|
||||
.globl _AsmReadMm6
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadMm7
|
||||
.globl _AsmReadMm7
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadMsr64
|
||||
.globl _AsmReadMsr64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadPmc
|
||||
.globl _AsmReadPmc
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadSs
|
||||
.globl _AsmReadSs
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT16
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadTr
|
||||
.globl _AsmReadTr
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT16
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _AsmReadTsc
|
||||
.globl _AsmReadTsc
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINT64
|
||||
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _SetJump, _InternalAssertJumpBuffer
|
||||
.globl _SetJump, _InternalAssertJumpBuffer
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# UINTN
|
||||
|
@ -29,7 +29,7 @@
|
||||
# IN UINT64 Operand
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _InternalMathSwapBytes64
|
||||
.globl _InternalMathSwapBytes64
|
||||
_InternalMathSwapBytes64:
|
||||
movl 8(%esp), %eax
|
||||
movl 4(%esp), %edx
|
||||
|
@ -19,8 +19,8 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _m16Start, _m16Size, _mThunk16Attr, _m16Gdt, _m16GdtrBase, _mTransition
|
||||
.global _InternalAsmThunk16
|
||||
.globl _m16Start, _m16Size, _mThunk16Attr, _m16Gdt, _m16GdtrBase, _mTransition
|
||||
.globl _InternalAsmThunk16
|
||||
|
||||
_m16Start:
|
||||
|
||||
@ -30,8 +30,8 @@ _BackFromUserCode:
|
||||
push %ss
|
||||
push %cs
|
||||
.byte 0x66
|
||||
call @Base1 # push eip
|
||||
@Base1:
|
||||
call L_Base1 # push eip
|
||||
L_Base1:
|
||||
pushfw # pushfd actually
|
||||
cli # disable interrupts
|
||||
push %gs
|
||||
@ -39,20 +39,20 @@ _BackFromUserCode:
|
||||
push %es
|
||||
push %ds
|
||||
pushaw # pushad actually
|
||||
.byte 0x66, 0xba # mov edx, imm32
|
||||
.byte 0x66, 0xba # mov edx, imm32
|
||||
_ThunkAttr: .space 4
|
||||
testb $THUNK_ATTRIBUTE_DISABLE_A20_MASK_INT_15, %dl
|
||||
jz @1
|
||||
jz 1f
|
||||
movl $0x15cd2401, %eax # mov ax, 2401h & int 15h
|
||||
cli # disable interrupts
|
||||
jnc @2
|
||||
@1:
|
||||
jnc 2f
|
||||
1:
|
||||
testb $THUNK_ATTRIBUTE_DISABLE_A20_MASK_KBD_CTRL, %dl
|
||||
jz @2
|
||||
jz 2f
|
||||
inb $0x92, %al
|
||||
orb $2, %al
|
||||
outb %al, $0x92 # deactivate A20M#
|
||||
@2:
|
||||
2:
|
||||
movl %ss, %eax
|
||||
.byte 0x67, 0x66, 0x8d, 0x6c, 0x24, 0x34, 0x66
|
||||
mov %ebp, 0xffffffd8(%esi)
|
||||
@ -93,16 +93,16 @@ _ToUserCode:
|
||||
movl %esi, %ss # set up 16-bit stack segment
|
||||
xchgw %bx, %sp # set up 16-bit stack pointer
|
||||
.byte 0x66
|
||||
call @Base # push eip
|
||||
@Base:
|
||||
popw %bp # ebp <- offset @Base
|
||||
call L_Base # push eip
|
||||
L_Base:
|
||||
popw %bp # ebp <- offset L_Base
|
||||
addr16 pushl 36(%si)
|
||||
.byte 0x36
|
||||
lea 0xc(%esi), %eax
|
||||
push %eax
|
||||
lret
|
||||
|
||||
@RealMode:
|
||||
L_RealMode:
|
||||
mov %edx, %cs:0xffffffc5(%esi)
|
||||
mov %bx, %cs:0xffffffcb(%esi)
|
||||
lidtw %cs:0xffffffd7(%esi)
|
||||
|
@ -28,7 +28,7 @@
|
||||
# VOID
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWbinvd
|
||||
.globl _AsmWbinvd
|
||||
_AsmWbinvd:
|
||||
wbinvd
|
||||
ret
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Cr0
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteCr0
|
||||
.globl _AsmWriteCr0
|
||||
_AsmWriteCr0:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %cr0
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Cr2
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteCr2
|
||||
.globl _AsmWriteCr2
|
||||
_AsmWriteCr2:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %cr2
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Cr3
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteCr3
|
||||
.globl _AsmWriteCr3
|
||||
_AsmWriteCr3:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %cr3
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Cr4
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteCr4
|
||||
.globl _AsmWriteCr4
|
||||
_AsmWriteCr4:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %cr4
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteDr0
|
||||
.globl _AsmWriteDr0
|
||||
_AsmWriteDr0:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %dr0
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteDr1
|
||||
.globl _AsmWriteDr1
|
||||
_AsmWriteDr1:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %dr1
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteDr2
|
||||
.globl _AsmWriteDr2
|
||||
_AsmWriteDr2:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %dr2
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteDr3
|
||||
.globl _AsmWriteDr3
|
||||
_AsmWriteDr3:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %dr3
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteDr4
|
||||
.globl _AsmWriteDr4
|
||||
_AsmWriteDr4:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %dr4
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteDr5
|
||||
.globl _AsmWriteDr5
|
||||
_AsmWriteDr5:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %dr5
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteDr6
|
||||
.globl _AsmWriteDr6
|
||||
_AsmWriteDr6:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %dr6
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINTN Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteDr7
|
||||
.globl _AsmWriteDr7
|
||||
_AsmWriteDr7:
|
||||
movl 4(%esp), %eax
|
||||
movl %eax, %dr7
|
||||
|
@ -28,7 +28,7 @@
|
||||
# OUT IA32_DESCRIPTOR *Gdtr
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _InternalX86WriteGdtr
|
||||
.globl _InternalX86WriteGdtr
|
||||
_InternalX86WriteGdtr:
|
||||
movl 4(%esp), %eax
|
||||
lgdt (%eax)
|
||||
|
@ -28,7 +28,7 @@
|
||||
# OUT IA32_DESCRIPTOR *Idtr
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _InternalX86WriteIdtr
|
||||
.globl _InternalX86WriteIdtr
|
||||
_InternalX86WriteIdtr:
|
||||
movl 4(%esp), %eax
|
||||
lidt (%eax)
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINT16 Ldtr
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteLdtr
|
||||
.globl _AsmWriteLdtr
|
||||
_AsmWriteLdtr:
|
||||
movl 4(%esp), %eax
|
||||
lldtw %ax
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteMm0
|
||||
.globl _AsmWriteMm0
|
||||
_AsmWriteMm0:
|
||||
movq 4(%esp), %mm0
|
||||
ret
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteMm1
|
||||
.globl _AsmWriteMm1
|
||||
_AsmWriteMm1:
|
||||
movq 4(%esp), %mm1
|
||||
ret
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteMm2
|
||||
.globl _AsmWriteMm2
|
||||
_AsmWriteMm2:
|
||||
movq 4(%esp), %mm2
|
||||
ret
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteMm3
|
||||
.globl _AsmWriteMm3
|
||||
_AsmWriteMm3:
|
||||
movq 4(%esp), %mm3
|
||||
ret
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteMm4
|
||||
.globl _AsmWriteMm4
|
||||
_AsmWriteMm4:
|
||||
movq 4(%esp), %mm4
|
||||
ret
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteMm5
|
||||
.globl _AsmWriteMm5
|
||||
_AsmWriteMm5:
|
||||
movq 4(%esp), %mm5
|
||||
ret
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteMm6
|
||||
.globl _AsmWriteMm6
|
||||
_AsmWriteMm6:
|
||||
movq 4(%esp), %mm6
|
||||
ret
|
||||
|
@ -28,7 +28,7 @@
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteMm7
|
||||
.globl _AsmWriteMm7
|
||||
_AsmWriteMm7:
|
||||
movq 4(%esp), %mm7
|
||||
ret
|
||||
|
@ -29,7 +29,7 @@
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global _AsmWriteMsr64
|
||||
.globl _AsmWriteMsr64
|
||||
_AsmWriteMsr64:
|
||||
movl 12(%esp), %edx
|
||||
movl 8(%esp), %eax
|
||||
|
@ -17,7 +17,7 @@
|
||||
.auto
|
||||
.text
|
||||
|
||||
.global PalCallStatic
|
||||
.globl PalCallStatic
|
||||
.type PalCallStatic, @function
|
||||
|
||||
.proc CpuFlushTlb
|
||||
|
@ -17,7 +17,7 @@
|
||||
.auto
|
||||
.text
|
||||
|
||||
.global InternalAssertJumpBuffer
|
||||
.globl InternalAssertJumpBuffer
|
||||
.type InternalAssertJumpBuffer, @function
|
||||
|
||||
.proc SetJump
|
||||
|
@ -27,7 +27,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMemCompareMem
|
||||
.globl _InternalMemCompareMem
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# INTN
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMemCopyMem
|
||||
.globl _InternalMemCopyMem
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID *
|
||||
@ -42,7 +42,7 @@ _InternalMemCopyMem:
|
||||
cmpl %edi, %esi
|
||||
jae L0
|
||||
cmpl %edi, %eax # Overlapped?
|
||||
jae @CopyBackward # Copy backward if overlapped
|
||||
jae L_CopyBackward # Copy backward if overlapped
|
||||
L0:
|
||||
xorl %ecx, %ecx
|
||||
subl %esi, %ecx
|
||||
@ -57,7 +57,7 @@ L1:
|
||||
movl %edx, %ecx
|
||||
andl $7, %edx
|
||||
shrl $3, %ecx # ecx <- # of Qwords to copy
|
||||
jz @CopyBytes
|
||||
jz L_CopyBytes
|
||||
pushl %eax
|
||||
pushl %eax
|
||||
movq %mm0, (%esp) # save mm0
|
||||
@ -70,12 +70,12 @@ L2:
|
||||
movq (%esp), %mm0 # restore mm0
|
||||
popl %ecx # stack cleanup
|
||||
popl %ecx # stack cleanup
|
||||
jmp @CopyBytes
|
||||
@CopyBackward:
|
||||
jmp L_CopyBytes
|
||||
L_CopyBackward:
|
||||
movl %eax, %esi # esi <- Last byte in Source
|
||||
leal -1(%edi,%edx,), %edi # edi <- Last byte in Destination
|
||||
std
|
||||
@CopyBytes:
|
||||
L_CopyBytes:
|
||||
movl %edx, %ecx
|
||||
rep
|
||||
movsb
|
||||
|
@ -27,7 +27,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.global _InternalMemScanMem16
|
||||
.globl _InternalMemScanMem16
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# CONST VOID *
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user