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:
@@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
|
|
||||||
.align 8
|
.align 8
|
||||||
.globl ASM_PFX(AsmGetVectorTemplatInfo)
|
ASM_GLOBAL ASM_PFX(AsmGetVectorTemplatInfo)
|
||||||
.globl ASM_PFX(AsmVectorFixup)
|
ASM_GLOBAL ASM_PFX(AsmVectorFixup)
|
||||||
/*
|
/*
|
||||||
;
|
;
|
||||||
;-----------------------------------------------------------------------
|
;-----------------------------------------------------------------------
|
||||||
|
@@ -12,11 +12,11 @@
|
|||||||
#
|
#
|
||||||
#**/
|
#**/
|
||||||
|
|
||||||
.globl ASM_PFX(OrigVector)
|
ASM_GLOBAL ASM_PFX(OrigVector)
|
||||||
.globl ASM_PFX(InterruptEntryStub)
|
ASM_GLOBAL ASM_PFX(InterruptEntryStub)
|
||||||
.globl ASM_PFX(StubSize)
|
ASM_GLOBAL ASM_PFX(StubSize)
|
||||||
.globl ASM_PFX(CommonIdtEntry)
|
ASM_GLOBAL ASM_PFX(CommonIdtEntry)
|
||||||
.globl ASM_PFX(FxStorSupport)
|
ASM_GLOBAL ASM_PFX(FxStorSupport)
|
||||||
|
|
||||||
ASM_PFX(StubSize): .long ASM_PFX(InterruptEntryStubEnd) - ASM_PFX(InterruptEntryStub)
|
ASM_PFX(StubSize): .long ASM_PFX(InterruptEntryStubEnd) - ASM_PFX(InterruptEntryStub)
|
||||||
ASM_PFX(AppEsp): .long 0x11111111 # ?
|
ASM_PFX(AppEsp): .long 0x11111111 # ?
|
||||||
@@ -34,7 +34,7 @@ ASM_PFX(OrigVector): .long 0x66666666 # ?
|
|||||||
#
|
#
|
||||||
# Abstract: Returns TRUE if FxStor instructions are supported
|
# Abstract: Returns TRUE if FxStor instructions are supported
|
||||||
#
|
#
|
||||||
.globl ASM_PFX(FxStorSupport)
|
ASM_GLOBAL ASM_PFX(FxStorSupport)
|
||||||
ASM_PFX(FxStorSupport):
|
ASM_PFX(FxStorSupport):
|
||||||
#
|
#
|
||||||
# cpuid corrupts ebx which must be preserved per the C calling convention
|
# cpuid corrupts ebx which must be preserved per the C calling convention
|
||||||
@@ -57,7 +57,7 @@ ASM_PFX(FxStorSupport):
|
|||||||
# Abstract: Encodes an IDT descriptor with the given physical address
|
# Abstract: Encodes an IDT descriptor with the given physical address
|
||||||
#
|
#
|
||||||
|
|
||||||
.globl ASM_PFX(Vect2Desc)
|
ASM_GLOBAL ASM_PFX(Vect2Desc)
|
||||||
ASM_PFX(Vect2Desc):
|
ASM_PFX(Vect2Desc):
|
||||||
push %ebp
|
push %ebp
|
||||||
mov %esp,%ebp
|
mov %esp,%ebp
|
||||||
@@ -71,13 +71,13 @@ ASM_PFX(Vect2Desc):
|
|||||||
leave
|
leave
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.globl ASM_PFX(InterruptEntryStub)
|
ASM_GLOBAL ASM_PFX(InterruptEntryStub)
|
||||||
ASM_PFX(InterruptEntryStub):
|
ASM_PFX(InterruptEntryStub):
|
||||||
mov %esp,0x0 # save stack top
|
mov %esp,0x0 # save stack top
|
||||||
mov $0x0,%esp # switch to debugger stack
|
mov $0x0,%esp # switch to debugger stack
|
||||||
push $0x0 # push vector number - will be modified before installed
|
push $0x0 # push vector number - will be modified before installed
|
||||||
jmp ASM_PFX(CommonIdtEntry) # jump CommonIdtEntry
|
jmp ASM_PFX(CommonIdtEntry) # jump CommonIdtEntry
|
||||||
.globl ASM_PFX(InterruptEntryStubEnd)
|
ASM_GLOBAL ASM_PFX(InterruptEntryStubEnd)
|
||||||
ASM_PFX(InterruptEntryStubEnd):
|
ASM_PFX(InterruptEntryStubEnd):
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@@ -86,7 +86,7 @@ ASM_PFX(InterruptEntryStubEnd):
|
|||||||
# Abstract: This code is not a function, but is the common part for all IDT
|
# Abstract: This code is not a function, but is the common part for all IDT
|
||||||
# vectors.
|
# vectors.
|
||||||
#
|
#
|
||||||
.globl ASM_PFX(CommonIdtEntry)
|
ASM_GLOBAL ASM_PFX(CommonIdtEntry)
|
||||||
ASM_PFX(CommonIdtEntry):
|
ASM_PFX(CommonIdtEntry):
|
||||||
##
|
##
|
||||||
## At this point, the stub has saved the current application stack esp into AppEsp
|
## At this point, the stub has saved the current application stack esp into AppEsp
|
||||||
|
@@ -16,10 +16,10 @@
|
|||||||
#include "Common.i"
|
#include "Common.i"
|
||||||
#include "Ds64Macros.i"
|
#include "Ds64Macros.i"
|
||||||
|
|
||||||
.globl PatchSaveBuffer
|
ASM_GLOBAL PatchSaveBuffer
|
||||||
.globl IpfContextBuf
|
ASM_GLOBAL IpfContextBuf
|
||||||
.globl CommonHandler
|
ASM_GLOBAL CommonHandler
|
||||||
.globl ExternalInterruptCount
|
ASM_GLOBAL ExternalInterruptCount
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
// Description:
|
// Description:
|
||||||
// Flushes instruction cache for specified number of bytes
|
// Flushes instruction cache for specified number of bytes
|
||||||
//
|
//
|
||||||
.globl InstructionCacheFlush
|
ASM_GLOBAL InstructionCacheFlush
|
||||||
.proc InstructionCacheFlush
|
.proc InstructionCacheFlush
|
||||||
.align 32
|
.align 32
|
||||||
InstructionCacheFlush::
|
InstructionCacheFlush::
|
||||||
@@ -158,7 +158,7 @@ LoopBack: // $L143:
|
|||||||
// Notes:
|
// Notes:
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
.globl ChainHandler
|
ASM_GLOBAL ChainHandler
|
||||||
.proc ChainHandler
|
.proc ChainHandler
|
||||||
ChainHandler:
|
ChainHandler:
|
||||||
|
|
||||||
@@ -233,7 +233,7 @@ ChainHandlerDone:
|
|||||||
// Notes:
|
// Notes:
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
.globl UnchainHandler
|
ASM_GLOBAL UnchainHandler
|
||||||
.proc UnchainHandler
|
.proc UnchainHandler
|
||||||
|
|
||||||
UnchainHandler:
|
UnchainHandler:
|
||||||
@@ -666,7 +666,7 @@ SetSlotDone:
|
|||||||
// Returns:
|
// Returns:
|
||||||
// Current value if IVA
|
// Current value if IVA
|
||||||
|
|
||||||
.globl GetIva
|
ASM_GLOBAL GetIva
|
||||||
.proc GetIva
|
.proc GetIva
|
||||||
GetIva:
|
GetIva:
|
||||||
mov r8=cr2;;
|
mov r8=cr2;;
|
||||||
@@ -686,7 +686,7 @@ GetIva:
|
|||||||
// Returns:
|
// Returns:
|
||||||
// Previous state of psr.ic
|
// Previous state of psr.ic
|
||||||
//
|
//
|
||||||
.globl ProgramInterruptFlags
|
ASM_GLOBAL ProgramInterruptFlags
|
||||||
.proc ProgramInterruptFlags
|
.proc ProgramInterruptFlags
|
||||||
ProgramInterruptFlags:
|
ProgramInterruptFlags:
|
||||||
alloc loc0=1,2,0,0;;
|
alloc loc0=1,2,0,0;;
|
||||||
@@ -1272,7 +1272,7 @@ EndHookHandler:
|
|||||||
// Saves IVT index to SCRATCH_REG1 (immediate value is fixed up when code is copied
|
// Saves IVT index to SCRATCH_REG1 (immediate value is fixed up when code is copied
|
||||||
// to the IVT entry.
|
// to the IVT entry.
|
||||||
|
|
||||||
.globl HookStub
|
ASM_GLOBAL HookStub
|
||||||
.proc HookStub
|
.proc HookStub
|
||||||
HookStub:
|
HookStub:
|
||||||
|
|
||||||
|
@@ -14,11 +14,11 @@
|
|||||||
|
|
||||||
.intel_syntax noprefix
|
.intel_syntax noprefix
|
||||||
|
|
||||||
.globl ASM_PFX(OrigVector)
|
ASM_GLOBAL ASM_PFX(OrigVector)
|
||||||
.globl ASM_PFX(InterruptEntryStub)
|
ASM_GLOBAL ASM_PFX(InterruptEntryStub)
|
||||||
.globl ASM_PFX(StubSize)
|
ASM_GLOBAL ASM_PFX(StubSize)
|
||||||
.globl ASM_PFX(CommonIdtEntry)
|
ASM_GLOBAL ASM_PFX(CommonIdtEntry)
|
||||||
.globl ASM_PFX(FxStorSupport)
|
ASM_GLOBAL ASM_PFX(FxStorSupport)
|
||||||
|
|
||||||
.data
|
.data
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ DebugStackBegin : .ascii "<<<< DbgStkBegin" # initial debug ESP == DebugSta
|
|||||||
#
|
#
|
||||||
# Abstract: Returns TRUE if FxStor instructions are supported
|
# Abstract: Returns TRUE if FxStor instructions are supported
|
||||||
#
|
#
|
||||||
.globl ASM_PFX(FxStorSupport)
|
ASM_GLOBAL ASM_PFX(FxStorSupport)
|
||||||
ASM_PFX(FxStorSupport):
|
ASM_PFX(FxStorSupport):
|
||||||
#
|
#
|
||||||
# cpuid corrupts rbx which must be preserved per the C calling convention
|
# cpuid corrupts rbx which must be preserved per the C calling convention
|
||||||
@@ -116,7 +116,7 @@ ASM_PFX(FxStorSupport):
|
|||||||
#
|
#
|
||||||
# Abstract: Encodes an IDT descriptor with the given physical address
|
# Abstract: Encodes an IDT descriptor with the given physical address
|
||||||
#
|
#
|
||||||
.globl ASM_PFX(Vect2Desc)
|
ASM_GLOBAL ASM_PFX(Vect2Desc)
|
||||||
ASM_PFX(Vect2Desc):
|
ASM_PFX(Vect2Desc):
|
||||||
mov rax, rdx
|
mov rax, rdx
|
||||||
mov word ptr [rcx], ax # write bits 15..0 of offset
|
mov word ptr [rcx], ax # write bits 15..0 of offset
|
||||||
@@ -136,13 +136,13 @@ ASM_PFX(Vect2Desc):
|
|||||||
# Abstract: This code is not a function, but is a small piece of code that is
|
# Abstract: This code is not a function, but is a small piece of code that is
|
||||||
# copied and fixed up once for each IDT entry that is hooked.
|
# copied and fixed up once for each IDT entry that is hooked.
|
||||||
#
|
#
|
||||||
.globl ASM_PFX(InterruptEntryStub)
|
ASM_GLOBAL ASM_PFX(InterruptEntryStub)
|
||||||
ASM_PFX(InterruptEntryStub):
|
ASM_PFX(InterruptEntryStub):
|
||||||
|
|
||||||
push 0 # push vector number - will be modified before installed
|
push 0 # push vector number - will be modified before installed
|
||||||
jmp ASM_PFX(CommonIdtEntry)
|
jmp ASM_PFX(CommonIdtEntry)
|
||||||
|
|
||||||
.globl ASM_PFX(InterruptEntryStubEnd)
|
ASM_GLOBAL ASM_PFX(InterruptEntryStubEnd)
|
||||||
ASM_PFX(InterruptEntryStubEnd):
|
ASM_PFX(InterruptEntryStubEnd):
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@@ -151,7 +151,7 @@ ASM_PFX(InterruptEntryStubEnd):
|
|||||||
# Abstract: This code is not a function, but is the common part for all IDT
|
# Abstract: This code is not a function, but is the common part for all IDT
|
||||||
# vectors.
|
# vectors.
|
||||||
#
|
#
|
||||||
.globl ASM_PFX(CommonIdtEntry)
|
ASM_GLOBAL ASM_PFX(CommonIdtEntry)
|
||||||
##
|
##
|
||||||
## At this point, the stub has saved the current application stack esp into AppRsp
|
## At this point, the stub has saved the current application stack esp into AppRsp
|
||||||
## and switched stacks to the debug stack, where it pushed the vector number
|
## and switched stacks to the debug stack, where it pushed the vector number
|
||||||
|
@@ -13,9 +13,9 @@
|
|||||||
#
|
#
|
||||||
#**/
|
#**/
|
||||||
|
|
||||||
.globl ASM_PFX(CopyMem)
|
ASM_GLOBAL ASM_PFX(CopyMem)
|
||||||
|
|
||||||
.globl ASM_PFX(EbcLLCALLEXNative)
|
ASM_GLOBAL ASM_PFX(EbcLLCALLEXNative)
|
||||||
ASM_PFX(EbcLLCALLEXNative):
|
ASM_PFX(EbcLLCALLEXNative):
|
||||||
push %ebp
|
push %ebp
|
||||||
push %ebx
|
push %ebx
|
||||||
@@ -42,16 +42,16 @@ ASM_PFX(EbcLLCALLEXNative):
|
|||||||
pop %ebp
|
pop %ebp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.globl ASM_PFX(EbcLLGetEbcEntryPoint)
|
ASM_GLOBAL ASM_PFX(EbcLLGetEbcEntryPoint)
|
||||||
ASM_PFX(EbcLLGetEbcEntryPoint):
|
ASM_PFX(EbcLLGetEbcEntryPoint):
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.globl ASM_PFX(EbcLLGetStackPointer)
|
ASM_GLOBAL ASM_PFX(EbcLLGetStackPointer)
|
||||||
ASM_PFX(EbcLLGetStackPointer):
|
ASM_PFX(EbcLLGetStackPointer):
|
||||||
mov %esp,%eax
|
mov %esp,%eax
|
||||||
add $0x4,%eax
|
add $0x4,%eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.globl ASM_PFX(EbcLLGetReturnValue)
|
ASM_GLOBAL ASM_PFX(EbcLLGetReturnValue)
|
||||||
ASM_PFX(EbcLLGetReturnValue):
|
ASM_PFX(EbcLLGetReturnValue):
|
||||||
ret
|
ret
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(CpuFlushTlb)
|
ASM_GLOBAL ASM_PFX(CpuFlushTlb)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(CpuSleep)
|
ASM_GLOBAL ASM_PFX(CpuSleep)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
.auto
|
.auto
|
||||||
.text
|
.text
|
||||||
|
|
||||||
.globl PalCall
|
ASM_GLOBAL PalCall
|
||||||
.type PalCall, @function
|
.type PalCall, @function
|
||||||
|
|
||||||
.proc CpuFlushTlb
|
.proc CpuFlushTlb
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathARShiftU64)
|
ASM_GLOBAL ASM_PFX(InternalMathARShiftU64)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(CpuBreakpoint)
|
ASM_GLOBAL ASM_PFX(CpuBreakpoint)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmCpuid)
|
ASM_GLOBAL ASM_PFX(AsmCpuid)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
# OUT UINT32 *RegisterOutEdx OPTIONAL
|
# OUT UINT32 *RegisterOutEdx OPTIONAL
|
||||||
# )
|
# )
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmCpuidEx)
|
ASM_GLOBAL ASM_PFX(AsmCpuidEx)
|
||||||
ASM_PFX(AsmCpuidEx):
|
ASM_PFX(AsmCpuidEx):
|
||||||
push %ebx
|
push %ebx
|
||||||
push %ebp
|
push %ebp
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(CpuPause)
|
ASM_GLOBAL ASM_PFX(CpuPause)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
# VOID
|
# VOID
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmDisableCache)
|
ASM_GLOBAL ASM_PFX(AsmDisableCache)
|
||||||
ASM_PFX(AsmDisableCache):
|
ASM_PFX(AsmDisableCache):
|
||||||
movl %cr0, %eax
|
movl %cr0, %eax
|
||||||
btsl $30, %eax
|
btsl $30, %eax
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(DisableInterrupts)
|
ASM_GLOBAL ASM_PFX(DisableInterrupts)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalX86DisablePaging32)
|
ASM_GLOBAL ASM_PFX(InternalX86DisablePaging32)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathDivU64x32)
|
ASM_GLOBAL ASM_PFX(InternalMathDivU64x32)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathDivRemU64x32)
|
ASM_GLOBAL ASM_PFX(InternalMathDivRemU64x32)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathDivRemU64x32), ASM_PFX(InternalMathDivRemU64x64)
|
ASM_GLOBAL ASM_PFX(InternalMathDivRemU64x32), ASM_PFX(InternalMathDivRemU64x64)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
# VOID
|
# VOID
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmEnableCache)
|
ASM_GLOBAL ASM_PFX(AsmEnableCache)
|
||||||
ASM_PFX(AsmEnableCache):
|
ASM_PFX(AsmEnableCache):
|
||||||
wbinvd
|
wbinvd
|
||||||
movl %cr0, %eax
|
movl %cr0, %eax
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(EnableDisableInterrupts)
|
ASM_GLOBAL ASM_PFX(EnableDisableInterrupts)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(EnableInterrupts)
|
ASM_GLOBAL ASM_PFX(EnableInterrupts)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalX86EnablePaging32)
|
ASM_GLOBAL ASM_PFX(InternalX86EnablePaging32)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalX86EnablePaging64)
|
ASM_GLOBAL ASM_PFX(InternalX86EnablePaging64)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmFlushCacheLine)
|
ASM_GLOBAL ASM_PFX(AsmFlushCacheLine)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalX86FxRestore)
|
ASM_GLOBAL ASM_PFX(InternalX86FxRestore)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalX86FxSave)
|
ASM_GLOBAL ASM_PFX(InternalX86FxSave)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmInvd)
|
ASM_GLOBAL ASM_PFX(AsmInvd)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathLRotU64)
|
ASM_GLOBAL ASM_PFX(InternalMathLRotU64)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathLShiftU64)
|
ASM_GLOBAL ASM_PFX(InternalMathLShiftU64)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalLongJump)
|
ASM_GLOBAL ASM_PFX(InternalLongJump)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathModU64x32)
|
ASM_GLOBAL ASM_PFX(InternalMathModU64x32)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT32
|
# UINT32
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmMonitor)
|
ASM_GLOBAL ASM_PFX(AsmMonitor)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
.386:
|
.386:
|
||||||
.code:
|
.code:
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathMultU64x32)
|
ASM_GLOBAL ASM_PFX(InternalMathMultU64x32)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathMultU64x64)
|
ASM_GLOBAL ASM_PFX(InternalMathMultU64x64)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmMwait)
|
ASM_GLOBAL ASM_PFX(AsmMwait)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathRRotU64)
|
ASM_GLOBAL ASM_PFX(InternalMathRRotU64)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
.686:
|
.686:
|
||||||
.code:
|
.code:
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMathRShiftU64)
|
ASM_GLOBAL ASM_PFX(InternalMathRShiftU64)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadCr0)
|
ASM_GLOBAL ASM_PFX(AsmReadCr0)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadCr2)
|
ASM_GLOBAL ASM_PFX(AsmReadCr2)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadCr3)
|
ASM_GLOBAL ASM_PFX(AsmReadCr3)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadCr4)
|
ASM_GLOBAL ASM_PFX(AsmReadCr4)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadCs)
|
ASM_GLOBAL ASM_PFX(AsmReadCs)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT16
|
# UINT16
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadDr0)
|
ASM_GLOBAL ASM_PFX(AsmReadDr0)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadDr1)
|
ASM_GLOBAL ASM_PFX(AsmReadDr1)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadDr2)
|
ASM_GLOBAL ASM_PFX(AsmReadDr2)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadDr3)
|
ASM_GLOBAL ASM_PFX(AsmReadDr3)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadDr4)
|
ASM_GLOBAL ASM_PFX(AsmReadDr4)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadDr5)
|
ASM_GLOBAL ASM_PFX(AsmReadDr5)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadDr6)
|
ASM_GLOBAL ASM_PFX(AsmReadDr6)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadDr7)
|
ASM_GLOBAL ASM_PFX(AsmReadDr7)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadDs)
|
ASM_GLOBAL ASM_PFX(AsmReadDs)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT16
|
# UINT16
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadEflags)
|
ASM_GLOBAL ASM_PFX(AsmReadEflags)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadEs)
|
ASM_GLOBAL ASM_PFX(AsmReadEs)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT16
|
# UINT16
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadFs)
|
ASM_GLOBAL ASM_PFX(AsmReadFs)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT16
|
# UINT16
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalX86ReadGdtr)
|
ASM_GLOBAL ASM_PFX(InternalX86ReadGdtr)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadGs)
|
ASM_GLOBAL ASM_PFX(AsmReadGs)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT16
|
# UINT16
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(InternalX86ReadIdtr)
|
ASM_GLOBAL ASM_PFX(InternalX86ReadIdtr)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# VOID
|
# VOID
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadLdtr)
|
ASM_GLOBAL ASM_PFX(AsmReadLdtr)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT16
|
# UINT16
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadMm0)
|
ASM_GLOBAL ASM_PFX(AsmReadMm0)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadMm1)
|
ASM_GLOBAL ASM_PFX(AsmReadMm1)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadMm2)
|
ASM_GLOBAL ASM_PFX(AsmReadMm2)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadMm3)
|
ASM_GLOBAL ASM_PFX(AsmReadMm3)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadMm4)
|
ASM_GLOBAL ASM_PFX(AsmReadMm4)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadMm5)
|
ASM_GLOBAL ASM_PFX(AsmReadMm5)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadMm6)
|
ASM_GLOBAL ASM_PFX(AsmReadMm6)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadMm7)
|
ASM_GLOBAL ASM_PFX(AsmReadMm7)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadMsr64)
|
ASM_GLOBAL ASM_PFX(AsmReadMsr64)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadPmc)
|
ASM_GLOBAL ASM_PFX(AsmReadPmc)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadSs)
|
ASM_GLOBAL ASM_PFX(AsmReadSs)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT16
|
# UINT16
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadTr)
|
ASM_GLOBAL ASM_PFX(AsmReadTr)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT16
|
# UINT16
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(AsmReadTsc)
|
ASM_GLOBAL ASM_PFX(AsmReadTsc)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINT64
|
# UINT64
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.globl ASM_PFX(SetJump), ASM_PFX(InternalAssertJumpBuffer)
|
ASM_GLOBAL ASM_PFX(SetJump), ASM_PFX(InternalAssertJumpBuffer)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# UINTN
|
# UINTN
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
# IN UINT64 Operand
|
# IN UINT64 Operand
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(InternalMathSwapBytes64)
|
ASM_GLOBAL ASM_PFX(InternalMathSwapBytes64)
|
||||||
ASM_PFX(InternalMathSwapBytes64):
|
ASM_PFX(InternalMathSwapBytes64):
|
||||||
movl 8(%esp), %eax # eax <- upper 32 bits
|
movl 8(%esp), %eax # eax <- upper 32 bits
|
||||||
movl 4(%esp), %edx # edx <- lower 32 bits
|
movl 4(%esp), %edx # edx <- lower 32 bits
|
||||||
|
@@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
|
|
||||||
.globl ASM_PFX(m16Start), ASM_PFX(m16Size), ASM_PFX(mThunk16Attr), ASM_PFX(m16Gdt), ASM_PFX(m16GdtrBase), ASM_PFX(mTransition)
|
ASM_GLOBAL 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(InternalAsmThunk16)
|
||||||
|
|
||||||
ASM_PFX(m16Start):
|
ASM_PFX(m16Start):
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# VOID
|
# VOID
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWbinvd)
|
ASM_GLOBAL ASM_PFX(AsmWbinvd)
|
||||||
ASM_PFX(AsmWbinvd):
|
ASM_PFX(AsmWbinvd):
|
||||||
wbinvd
|
wbinvd
|
||||||
ret
|
ret
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Cr0
|
# IN UINTN Cr0
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteCr0)
|
ASM_GLOBAL ASM_PFX(AsmWriteCr0)
|
||||||
ASM_PFX(AsmWriteCr0):
|
ASM_PFX(AsmWriteCr0):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %cr0
|
movl %eax, %cr0
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Cr2
|
# IN UINTN Cr2
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteCr2)
|
ASM_GLOBAL ASM_PFX(AsmWriteCr2)
|
||||||
ASM_PFX(AsmWriteCr2):
|
ASM_PFX(AsmWriteCr2):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %cr2
|
movl %eax, %cr2
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Cr3
|
# IN UINTN Cr3
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteCr3)
|
ASM_GLOBAL ASM_PFX(AsmWriteCr3)
|
||||||
ASM_PFX(AsmWriteCr3):
|
ASM_PFX(AsmWriteCr3):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %cr3
|
movl %eax, %cr3
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Cr4
|
# IN UINTN Cr4
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteCr4)
|
ASM_GLOBAL ASM_PFX(AsmWriteCr4)
|
||||||
ASM_PFX(AsmWriteCr4):
|
ASM_PFX(AsmWriteCr4):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %cr4
|
movl %eax, %cr4
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Value
|
# IN UINTN Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteDr0)
|
ASM_GLOBAL ASM_PFX(AsmWriteDr0)
|
||||||
ASM_PFX(AsmWriteDr0):
|
ASM_PFX(AsmWriteDr0):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %dr0
|
movl %eax, %dr0
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Value
|
# IN UINTN Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteDr1)
|
ASM_GLOBAL ASM_PFX(AsmWriteDr1)
|
||||||
ASM_PFX(AsmWriteDr1):
|
ASM_PFX(AsmWriteDr1):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %dr1
|
movl %eax, %dr1
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Value
|
# IN UINTN Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteDr2)
|
ASM_GLOBAL ASM_PFX(AsmWriteDr2)
|
||||||
ASM_PFX(AsmWriteDr2):
|
ASM_PFX(AsmWriteDr2):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %dr2
|
movl %eax, %dr2
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Value
|
# IN UINTN Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteDr3)
|
ASM_GLOBAL ASM_PFX(AsmWriteDr3)
|
||||||
ASM_PFX(AsmWriteDr3):
|
ASM_PFX(AsmWriteDr3):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %dr3
|
movl %eax, %dr3
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Value
|
# IN UINTN Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteDr4)
|
ASM_GLOBAL ASM_PFX(AsmWriteDr4)
|
||||||
ASM_PFX(AsmWriteDr4):
|
ASM_PFX(AsmWriteDr4):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %dr4
|
movl %eax, %dr4
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Value
|
# IN UINTN Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteDr5)
|
ASM_GLOBAL ASM_PFX(AsmWriteDr5)
|
||||||
ASM_PFX(AsmWriteDr5):
|
ASM_PFX(AsmWriteDr5):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %dr5
|
movl %eax, %dr5
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Value
|
# IN UINTN Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteDr6)
|
ASM_GLOBAL ASM_PFX(AsmWriteDr6)
|
||||||
ASM_PFX(AsmWriteDr6):
|
ASM_PFX(AsmWriteDr6):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %dr6
|
movl %eax, %dr6
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINTN Value
|
# IN UINTN Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteDr7)
|
ASM_GLOBAL ASM_PFX(AsmWriteDr7)
|
||||||
ASM_PFX(AsmWriteDr7):
|
ASM_PFX(AsmWriteDr7):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
movl %eax, %dr7
|
movl %eax, %dr7
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# OUT IA32_DESCRIPTOR *Gdtr
|
# OUT IA32_DESCRIPTOR *Gdtr
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(InternalX86WriteGdtr)
|
ASM_GLOBAL ASM_PFX(InternalX86WriteGdtr)
|
||||||
ASM_PFX(InternalX86WriteGdtr):
|
ASM_PFX(InternalX86WriteGdtr):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
lgdt (%eax)
|
lgdt (%eax)
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# OUT IA32_DESCRIPTOR *Idtr
|
# OUT IA32_DESCRIPTOR *Idtr
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(InternalX86WriteIdtr)
|
ASM_GLOBAL ASM_PFX(InternalX86WriteIdtr)
|
||||||
ASM_PFX(InternalX86WriteIdtr):
|
ASM_PFX(InternalX86WriteIdtr):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
lidt (%eax)
|
lidt (%eax)
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINT16 Ldtr
|
# IN UINT16 Ldtr
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteLdtr)
|
ASM_GLOBAL ASM_PFX(AsmWriteLdtr)
|
||||||
ASM_PFX(AsmWriteLdtr):
|
ASM_PFX(AsmWriteLdtr):
|
||||||
movl 4(%esp), %eax
|
movl 4(%esp), %eax
|
||||||
lldtw %ax
|
lldtw %ax
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINT64 Value
|
# IN UINT64 Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteMm0)
|
ASM_GLOBAL ASM_PFX(AsmWriteMm0)
|
||||||
ASM_PFX(AsmWriteMm0):
|
ASM_PFX(AsmWriteMm0):
|
||||||
movq 4(%esp), %mm0
|
movq 4(%esp), %mm0
|
||||||
ret
|
ret
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINT64 Value
|
# IN UINT64 Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteMm1)
|
ASM_GLOBAL ASM_PFX(AsmWriteMm1)
|
||||||
ASM_PFX(AsmWriteMm1):
|
ASM_PFX(AsmWriteMm1):
|
||||||
movq 4(%esp), %mm1
|
movq 4(%esp), %mm1
|
||||||
ret
|
ret
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINT64 Value
|
# IN UINT64 Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteMm2)
|
ASM_GLOBAL ASM_PFX(AsmWriteMm2)
|
||||||
ASM_PFX(AsmWriteMm2):
|
ASM_PFX(AsmWriteMm2):
|
||||||
movq 4(%esp), %mm2
|
movq 4(%esp), %mm2
|
||||||
ret
|
ret
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINT64 Value
|
# IN UINT64 Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteMm3)
|
ASM_GLOBAL ASM_PFX(AsmWriteMm3)
|
||||||
ASM_PFX(AsmWriteMm3):
|
ASM_PFX(AsmWriteMm3):
|
||||||
movq 4(%esp), %mm3
|
movq 4(%esp), %mm3
|
||||||
ret
|
ret
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINT64 Value
|
# IN UINT64 Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteMm4)
|
ASM_GLOBAL ASM_PFX(AsmWriteMm4)
|
||||||
ASM_PFX(AsmWriteMm4):
|
ASM_PFX(AsmWriteMm4):
|
||||||
movq 4(%esp), %mm4
|
movq 4(%esp), %mm4
|
||||||
ret
|
ret
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINT64 Value
|
# IN UINT64 Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteMm5)
|
ASM_GLOBAL ASM_PFX(AsmWriteMm5)
|
||||||
ASM_PFX(AsmWriteMm5):
|
ASM_PFX(AsmWriteMm5):
|
||||||
movq 4(%esp), %mm5
|
movq 4(%esp), %mm5
|
||||||
ret
|
ret
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINT64 Value
|
# IN UINT64 Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteMm6)
|
ASM_GLOBAL ASM_PFX(AsmWriteMm6)
|
||||||
ASM_PFX(AsmWriteMm6):
|
ASM_PFX(AsmWriteMm6):
|
||||||
movq 4(%esp), %mm6
|
movq 4(%esp), %mm6
|
||||||
ret
|
ret
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
# IN UINT64 Value
|
# IN UINT64 Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteMm7)
|
ASM_GLOBAL ASM_PFX(AsmWriteMm7)
|
||||||
ASM_PFX(AsmWriteMm7):
|
ASM_PFX(AsmWriteMm7):
|
||||||
movq 4(%esp), %mm7
|
movq 4(%esp), %mm7
|
||||||
ret
|
ret
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
# IN UINT64 Value
|
# IN UINT64 Value
|
||||||
# );
|
# );
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(AsmWriteMsr64)
|
ASM_GLOBAL ASM_PFX(AsmWriteMsr64)
|
||||||
ASM_PFX(AsmWriteMsr64):
|
ASM_PFX(AsmWriteMsr64):
|
||||||
movl 12(%esp), %edx
|
movl 12(%esp), %edx
|
||||||
movl 8(%esp), %eax
|
movl 8(%esp), %eax
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user