cleanup the .S file to wrap all public symbols with ASM_PFX() macro,which is used to generate underscore prior to public symbol or not within various GCC distribution versions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8317 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian 2009-05-15 03:25:20 +00:00
parent d3c0cbcecc
commit 34e4a9a651
104 changed files with 254 additions and 254 deletions

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _CpuBreakpoint .global ASM_PFX(CpuBreakpoint)
_CpuBreakpoint: ASM_PFX(CpuBreakpoint):
int $0x3 int $0x3
ret ret

View File

@ -32,8 +32,8 @@
# OUT UINT32 *RegisterOutEdx OPTIONAL # OUT UINT32 *RegisterOutEdx OPTIONAL
# ) # )
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmCpuid; .global ASM_PFX(AsmCpuid)
_AsmCpuid: ASM_PFX(AsmCpuid):
push %rbx push %rbx
mov %ecx, %eax mov %ecx, %eax
push %rax # save Index on stack push %rax # save Index on stack

View File

@ -33,8 +33,8 @@
# OUT UINT32 *RegisterOutEdx OPTIONAL # OUT UINT32 *RegisterOutEdx OPTIONAL
# ) # )
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmCpuidEx .global ASM_PFX(AsmCpuidEx)
_AsmCpuidEx: ASM_PFX(AsmCpuidEx):
push %rbx push %rbx
movl %ecx,%eax movl %ecx,%eax
movl %edx,%ecx movl %edx,%ecx

View File

@ -28,7 +28,7 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _CpuPause; .global ASM_PFX(CpuPause)
_CpuPause: ASM_PFX(CpuPause):
pause pause
ret ret

View File

@ -28,7 +28,7 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _CpuSleep; .global ASM_PFX(CpuSleep)
_CpuSleep: ASM_PFX(CpuSleep):
hlt hlt
ret ret

View File

@ -29,7 +29,7 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _DisableInterrupts; .global ASM_PFX(DisableInterrupts)
_DisableInterrupts: ASM_PFX(DisableInterrupts):
cli cli
ret ret

View File

@ -35,8 +35,8 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86DisablePaging64 .global ASM_PFX(InternalX86DisablePaging64)
_InternalX86DisablePaging64: ASM_PFX(InternalX86DisablePaging64):
cli cli
shl $0x20,%rcx shl $0x20,%rcx
lea (%rip), %eax lea (%rip), %eax

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _EnableDisableInterrupts; .global ASM_PFX(EnableDisableInterrupts)
.align 16; .align 16
_EnableDisableInterrupts: ASM_PFX(EnableDisableInterrupts):
sti sti
cli cli
ret ret

View File

@ -29,7 +29,7 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _EnableInterrupts; .global ASM_PFX(EnableInterrupts)
_EnableInterrupts: ASM_PFX(EnableInterrupts):
sti sti
ret ret

View File

@ -33,8 +33,8 @@
# IN UINT64 NewStack %r8 # IN UINT64 NewStack %r8
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86EnablePaging64; .global ASM_PFX(InternalX86EnablePaging64)
_InternalX86EnablePaging64: ASM_PFX(InternalX86EnablePaging64):
cli cli
pop %rax pop %rax
callq Base callq Base

View File

@ -29,8 +29,8 @@
# IN VOID *LinearAddress # IN VOID *LinearAddress
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmFlushCacheLine; .global ASM_PFX(AsmFlushCacheLine)
_AsmFlushCacheLine: ASM_PFX(AsmFlushCacheLine):
clflush (%rdi) clflush (%rdi)
mov %rdi, %rax mov %rdi, %rax
ret ret

View File

@ -29,7 +29,7 @@
# IN CONST IA32_FX_BUFFER *Buffer # IN CONST IA32_FX_BUFFER *Buffer
# )# # )#
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86FxRestore; .global ASM_PFX(InternalX86FxRestore)
_InternalX86FxRestore: ASM_PFX(InternalX86FxRestore):
fxrstor (%rcx) fxrstor (%rcx)
ret ret

View File

@ -29,7 +29,7 @@
# OUT IA32_FX_BUFFER *Buffer # OUT IA32_FX_BUFFER *Buffer
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86FxSave; .global ASM_PFX(InternalX86FxSave)
_InternalX86FxSave: ASM_PFX(InternalX86FxSave):
fxsave (%rcx) fxsave (%rcx)
ret ret

View File

@ -30,8 +30,8 @@
# IN UINT32 ExchangeValue # IN UINT32 ExchangeValue
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalSyncCompareExchange32; .global ASM_PFX(InternalSyncCompareExchange32)
_InternalSyncCompareExchange32: ASM_PFX(InternalSyncCompareExchange32):
mov %edx, %eax mov %edx, %eax
lock cmpxchg %r8d, (%rcx) lock cmpxchg %r8d, (%rcx)
ret ret

View File

@ -31,9 +31,9 @@
# IN UINT64 ExchangeValue # IN UINT64 ExchangeValue
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalSyncCompareExchange64; .global ASM_PFX(InternalSyncCompareExchange64)
.align 16; .align 16
_InternalSyncCompareExchange64: ASM_PFX(InternalSyncCompareExchange64):
mov %rsi, %rax mov %rsi, %rax
lock cmpxchg %rdx,(%rdi) lock cmpxchg %rdx,(%rdi)
ret ret

View File

@ -29,8 +29,8 @@
# IN UINT32 *Value # IN UINT32 *Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalSyncDecrement; .global ASM_PFX(InternalSyncDecrement)
_InternalSyncDecrement: ASM_PFX(InternalSyncDecrement):
lock decl (%rcx) lock decl (%rcx)
mov (%rcx), %eax mov (%rcx), %eax
ret ret

View File

@ -29,8 +29,8 @@
# IN UINT32 *Value # IN UINT32 *Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalSyncIncrement; .global ASM_PFX(InternalSyncIncrement)
_InternalSyncIncrement: ASM_PFX(InternalSyncIncrement):
lock incl (%rcx) lock incl (%rcx)
mov (%rcx), %eax mov (%rcx), %eax
ret ret

View File

@ -29,7 +29,7 @@
# VOID # VOID
# )# # )#
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmInvd; .global ASM_PFX(AsmInvd)
_AsmInvd: ASM_PFX(AsmInvd):
invd invd
ret ret

View File

@ -27,8 +27,8 @@
# IN UINTN Value # IN UINTN Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalLongJump .global ASM_PFX(InternalLongJump)
_InternalLongJump: ASM_PFX(InternalLongJump):
mov (%rcx), %rbx mov (%rcx), %rbx
mov 0x8(%rcx), %rsp mov 0x8(%rcx), %rsp
mov 0x10(%rcx), %rbp mov 0x10(%rcx), %rbp

View File

@ -31,9 +31,9 @@
# IN UINTN Edx # IN UINTN Edx
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmMonitor; .global ASM_PFX(AsmMonitor)
.align 16; .align 16
_AsmMonitor: ASM_PFX(AsmMonitor):
mov %ecx,%eax mov %ecx,%eax
mov %edx,%ecx mov %edx,%ecx
mov %r8d,%edx mov %r8d,%edx

View File

@ -30,9 +30,9 @@
# IN UINTN Ecx # IN UINTN Ecx
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmMwait; .global ASM_PFX(AsmMwait)
.align 16; .align 16
_AsmMwait: ASM_PFX(AsmMwait):
mov %ecx,%eax mov %ecx,%eax
mov %edx,%ecx mov %edx,%ecx
mwait %rax,%rcx mwait %rax,%rcx

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCr0; .global ASM_PFX(AsmReadCr0)
.align 16; .align 16
_AsmReadCr0: ASM_PFX(AsmReadCr0):
mov %cr0, %rax mov %cr0, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCr2; .global ASM_PFX(AsmReadCr2)
.align 16; .align 16
_AsmReadCr2: ASM_PFX(AsmReadCr2):
mov %cr2, %rax mov %cr2, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCr3; .global ASM_PFX(AsmReadCr3)
.align 16; .align 16
_AsmReadCr3: ASM_PFX(AsmReadCr3):
mov %cr3, %rax mov %cr3, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCr4; .global ASM_PFX(AsmReadCr4)
.align 16; .align 16
_AsmReadCr4: ASM_PFX(AsmReadCr4):
mov %cr4, %rax mov %cr4, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadCs; .global ASM_PFX(AsmReadCs)
.align 16; .align 16
_AsmReadCs: ASM_PFX(AsmReadCs):
mov %cs, %eax mov %cs, %eax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr0; .global ASM_PFX(AsmReadDr0)
.align 16; .align 16
_AsmReadDr0: ASM_PFX(AsmReadDr0):
mov %dr0, %rax mov %dr0, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr1; .global ASM_PFX(AsmReadDr1)
.align 16; .align 16
_AsmReadDr1: ASM_PFX(AsmReadDr1):
mov %dr1, %rax mov %dr1, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr2; .global ASM_PFX(AsmReadDr2)
.align 16; .align 16
_AsmReadDr2: ASM_PFX(AsmReadDr2):
mov %dr2, %rax mov %dr2, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr3; .global ASM_PFX(AsmReadDr3)
.align 16; .align 16
_AsmReadDr3: ASM_PFX(AsmReadDr3):
mov %dr3, %rax mov %dr3, %rax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr4; .global ASM_PFX(AsmReadDr4)
.align 16; .align 16
_AsmReadDr4: ASM_PFX(AsmReadDr4):
#DB 0fh, 21h, 0e0h #DB 0fh, 21h, 0e0h
mov %dr4, %rax mov %dr4, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr5; .global ASM_PFX(AsmReadDr5)
.align 16; .align 16
_AsmReadDr5: ASM_PFX(AsmReadDr5):
mov %dr5, %rax mov %dr5, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr6; .global ASM_PFX(AsmReadDr6)
.align 16; .align 16
_AsmReadDr6: ASM_PFX(AsmReadDr6):
mov %dr6, %rax mov %dr6, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDr7; .global ASM_PFX(AsmReadDr7)
.align 16; .align 16
_AsmReadDr7: ASM_PFX(AsmReadDr7):
mov %dr7, %rax mov %dr7, %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadDs; .global ASM_PFX(AsmReadDs)
.align 16; .align 16
_AsmReadDs: ASM_PFX(AsmReadDs):
movl %ds, %eax movl %ds, %eax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadEflags; .global ASM_PFX(AsmReadEflags)
.align 16; .align 16
_AsmReadEflags: ASM_PFX(AsmReadEflags):
pushfq pushfq
pop %rax pop %rax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadEs; .global ASM_PFX(AsmReadEs)
.align 16; .align 16
_AsmReadEs: ASM_PFX(AsmReadEs):
mov %es, %eax mov %es, %eax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadFs; .global ASM_PFX(AsmReadFs)
.align 16; .align 16
_AsmReadFs: ASM_PFX(AsmReadFs):
mov %fs, %eax mov %fs, %eax
ret ret

View File

@ -29,8 +29,8 @@
# OUT IA32_DESCRIPTOR *Gdtr # OUT IA32_DESCRIPTOR *Gdtr
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86ReadGdtr; .global ASM_PFX(InternalX86ReadGdtr)
.align 16; .align 16
_InternalX86ReadGdtr: ASM_PFX(InternalX86ReadGdtr):
sgdt (%rcx) sgdt (%rcx)
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadGs; .global ASM_PFX(AsmReadGs)
.align 16; .align 16
_AsmReadGs: ASM_PFX(AsmReadGs):
mov %gs, %eax mov %gs, %eax
ret ret

View File

@ -29,8 +29,8 @@
# OUT IA32_DESCRIPTOR *Idtr # OUT IA32_DESCRIPTOR *Idtr
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86ReadIdtr; .global ASM_PFX(InternalX86ReadIdtr)
.align 16; .align 16
_InternalX86ReadIdtr: ASM_PFX(InternalX86ReadIdtr):
sidt (%rcx) sidt (%rcx)
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadLdtr; .global ASM_PFX(AsmReadLdtr)
.align 16; .align 16
_AsmReadLdtr: ASM_PFX(AsmReadLdtr):
sldt %eax sldt %eax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm0; .global ASM_PFX(AsmReadMm0)
.align 16; .align 16
_AsmReadMm0: ASM_PFX(AsmReadMm0):
#DB 48h, 0fh, 7eh, 0c0h #DB 48h, 0fh, 7eh, 0c0h
movd %mm0, %rax movd %mm0, %rax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm1; .global ASM_PFX(AsmReadMm1)
.align 16; .align 16
_AsmReadMm1: ASM_PFX(AsmReadMm1):
#DB 48h, 0fh, 7eh, 0c8h #DB 48h, 0fh, 7eh, 0c8h
movd %mm1, %rax movd %mm1, %rax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm2; .global ASM_PFX(AsmReadMm2)
.align 16; .align 16
_AsmReadMm2: ASM_PFX(AsmReadMm2):
#DB 48h, 0fh, 7eh, 0d0h #DB 48h, 0fh, 7eh, 0d0h
movd %mm2, %rax movd %mm2, %rax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm3; .global ASM_PFX(AsmReadMm3)
.align 16; .align 16
_AsmReadMm3: ASM_PFX(AsmReadMm3):
#DB 48h, 0fh, 7eh, 0d8h #DB 48h, 0fh, 7eh, 0d8h
movd %mm3, %rax movd %mm3, %rax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm4; .global ASM_PFX(AsmReadMm4)
.align 16; .align 16
_AsmReadMm4: ASM_PFX(AsmReadMm4):
#DB 48h, 0fh, 7eh, 0e0h #DB 48h, 0fh, 7eh, 0e0h
movd %mm4, %rax movd %mm4, %rax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm5; .global ASM_PFX(AsmReadMm5)
.align 16; .align 16
_AsmReadMm5: ASM_PFX(AsmReadMm5):
#DB 48h, 0fh, 7eh, 0e8h #DB 48h, 0fh, 7eh, 0e8h
movd %mm5, %rax movd %mm5, %rax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm6; .global ASM_PFX(AsmReadMm6)
.align 16; .align 16
_AsmReadMm6: ASM_PFX(AsmReadMm6):
#DB 48h, 0fh, 7eh, 0f0h #DB 48h, 0fh, 7eh, 0f0h
movd %mm6, %rax movd %mm6, %rax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMm7; .global ASM_PFX(AsmReadMm7)
.align 16; .align 16
_AsmReadMm7: ASM_PFX(AsmReadMm7):
#DB 48h, 0fh, 7eh, 0f8h #DB 48h, 0fh, 7eh, 0f8h
movd %mm7, %rax movd %mm7, %rax
ret ret

View File

@ -29,9 +29,9 @@
# IN UINT32 Index # IN UINT32 Index
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadMsr64; .global ASM_PFX(AsmReadMsr64)
.align 16; .align 16
_AsmReadMsr64: ASM_PFX(AsmReadMsr64):
rdmsr # edx & eax are zero extended rdmsr # edx & eax are zero extended
shl $0x20, %rdx shl $0x20, %rdx
or %rdx, %rax or %rdx, %rax

View File

@ -29,9 +29,9 @@
# IN UINT32 PmcIndex # IN UINT32 PmcIndex
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadPmc; .global ASM_PFX(AsmReadPmc)
.align 16; .align 16
_AsmReadPmc: ASM_PFX(AsmReadPmc):
rdpmc rdpmc
shl $0x20, %rdx shl $0x20, %rdx
or %rdx, %rax or %rdx, %rax

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadSs; .global ASM_PFX(AsmReadSs);
.align 16; .align 16
_AsmReadSs: ASM_PFX(AsmReadSs):
movl %ss, %eax movl %ss, %eax
ret ret

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadTr; .global ASM_PFX(AsmReadTr)
.align 16; .align 16
_AsmReadTr: ASM_PFX(AsmReadTr):
str %eax str %eax
ret ret

View File

@ -29,9 +29,9 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmReadTsc; .global ASM_PFX(AsmReadTsc)
.align 16; .align 16
_AsmReadTsc: ASM_PFX(AsmReadTsc):
rdtsc rdtsc
shl $0x20, %rdx shl $0x20, %rdx
or %rdx, %rax or %rdx, %rax

View File

@ -20,8 +20,8 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.extern InternalAssertJumpBuffer; .extern InternalAssertJumpBuffer;
.global _SetJump; .global ASM_PFX(SetJump)
_SetJump: ASM_PFX(SetJump):
push %rcx push %rcx
add $0xffffffffffffffe0,%rsp add $0xffffffffffffffe0,%rsp
call _InternalAssertJumpBuffer call _InternalAssertJumpBuffer

View File

@ -35,8 +35,8 @@
# None # None
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalSwitchStack; .global ASM_PFX(InternalSwitchStack)
_InternalSwitchStack: ASM_PFX(InternalSwitchStack):
mov %rcx, %rax mov %rcx, %rax
mov %rdx, %rcx mov %rdx, %rcx
mov %r8, %rdx mov %r8, %rdx

View File

@ -29,8 +29,8 @@
# VOID # VOID
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWbinvd; .global ASM_PFX(AsmWbinvd)
.align 16; .align 16
_AsmWbinvd: ASM_PFX(AsmWbinvd):
wbinvd wbinvd
ret ret

View File

@ -29,8 +29,8 @@
# UINTN Cr0 # UINTN Cr0
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteCr0; .global ASM_PFX(AsmWriteCr0)
_AsmWriteCr0: ASM_PFX(AsmWriteCr0):
mov %rcx,%cr0 mov %rcx,%cr0
mov %rcx,%rax mov %rcx,%rax
ret ret

View File

@ -29,8 +29,8 @@
# UINTN Cr2 # UINTN Cr2
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteCr2; .global ASM_PFX(AsmWriteCr2)
_AsmWriteCr2: ASM_PFX(AsmWriteCr2):
mov %rcx,%cr2 mov %rcx,%cr2
mov %rcx,%rax mov %rcx,%rax
ret ret

View File

@ -29,8 +29,8 @@
# UINTN Cr3 # UINTN Cr3
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteCr3; .global ASM_PFX(AsmWriteCr3)
_AsmWriteCr3: ASM_PFX(AsmWriteCr3):
mov %rcx,%cr3 mov %rcx,%cr3
mov %rcx,%rax mov %rcx,%rax
ret ret

View File

@ -29,8 +29,8 @@
# UINTN Cr4 # UINTN Cr4
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteCr4; .global ASM_PFX(AsmWriteCr4)
_AsmWriteCr4: ASM_PFX(AsmWriteCr4):
mov %rcx,%cr4 mov %rcx,%cr4
mov %rcx,%rax mov %rcx,%rax
ret ret

View File

@ -29,9 +29,9 @@
# UINTN Value # UINTN Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteDr0; .global ASM_PFX(AsmWriteDr0)
.align 16; .align 16
_AsmWriteDr0: ASM_PFX(AsmWriteDr0):
mov %rcx, %dr0 mov %rcx, %dr0
mov %rcx, %rax mov %rcx, %rax
ret ret

View File

@ -29,9 +29,9 @@
# UINTN Value # UINTN Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteDr1; .global ASM_PFX(AsmWriteDr1)
.align 16; .align 16
_AsmWriteDr1: ASM_PFX(AsmWriteDr1):
mov %rcx, %dr1 mov %rcx, %dr1
mov %rcx, %rax mov %rcx, %rax
ret ret

View File

@ -29,9 +29,9 @@
# UINTN Value # UINTN Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteDr2; .global ASM_PFX(AsmWriteDr2)
.align 16; .align 16
_AsmWriteDr2: ASM_PFX(AsmWriteDr2):
mov %rcx, %dr2 mov %rcx, %dr2
mov %rcx, %rax mov %rcx, %rax
ret ret

View File

@ -29,9 +29,9 @@
# UINTN Value # UINTN Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteDr3; .global ASM_PFX(AsmWriteDr3)
.align 16; .align 16
_AsmWriteDr3: ASM_PFX(AsmWriteDr3):
mov %rcx, %dr3 mov %rcx, %dr3
mov %rcx, %rax mov %rcx, %rax
ret ret

View File

@ -29,8 +29,8 @@
# IN UINTN Value # IN UINTN Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteDr4; .global ASM_PFX(AsmWriteDr4)
_AsmWriteDr4: ASM_PFX(AsmWriteDr4):
mov %rcx, %dr4 mov %rcx, %dr4
mov %rcx, %rax mov %rcx, %rax
ret ret

View File

@ -29,8 +29,8 @@
# IN UINTN Value # IN UINTN Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteDr5; .global ASM_PFX(AsmWriteDr5)
_AsmWriteDr5: ASM_PFX(AsmWriteDr5):
mov %rcx, %dr5 mov %rcx, %dr5
mov %rcx, %rax mov %rcx, %rax
ret ret

View File

@ -29,8 +29,8 @@
# IN UINTN Value # IN UINTN Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteDr6; .global ASM_PFX(AsmWriteDr6)
_AsmWriteDr6: ASM_PFX(AsmWriteDr6):
mov %rcx, %dr6 mov %rcx, %dr6
mov %rcx, %rax mov %rcx, %rax
ret ret

View File

@ -29,8 +29,8 @@
# IN UINTN Value # IN UINTN Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteDr7; .global ASM_PFX(AsmWriteDr7)
_AsmWriteDr7: ASM_PFX(AsmWriteDr7):
mov %rcx, %dr7 mov %rcx, %dr7
mov %rcx, %rax mov %rcx, %rax
ret ret

View File

@ -29,7 +29,7 @@
# IN CONST IA32_DESCRIPTOR *Idtr # IN CONST IA32_DESCRIPTOR *Idtr
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86WriteGdtr; .global ASM_PFX(InternalX86WriteGdtr)
_InternalX86WriteGdtr: ASM_PFX(InternalX86WriteGdtr):
lgdt (%rcx) lgdt (%rcx)
ret ret

View File

@ -29,8 +29,8 @@
# IN CONST IA32_DESCRIPTOR *Idtr # IN CONST IA32_DESCRIPTOR *Idtr
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _InternalX86WriteIdtr; .global ASM_PFX(InternalX86WriteIdtr)
.align 16; .align 16
_InternalX86WriteIdtr: ASM_PFX(InternalX86WriteIdtr):
lidt (%rcx) lidt (%rcx)
ret ret

View File

@ -29,8 +29,8 @@
# IN UINT16 Ldtr # IN UINT16 Ldtr
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteLdtr; .global ASM_PFX(AsmWriteLdtr);
.align 16; .align 16
_AsmWriteLdtr: ASM_PFX(AsmWriteLdtr):
lldt %cx lldt %cx
ret ret

View File

@ -29,7 +29,7 @@
# IN UINT64 Value # IN UINT64 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteMm0; .global ASM_PFX(AsmWriteMm0);
_AsmWriteMm0: ASM_PFX(AsmWriteMm0):
movd %rcx, %xmm0 movd %rcx, %xmm0
ret ret

View File

@ -29,7 +29,7 @@
# IN UINT64 Value # IN UINT64 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteMm1; .global ASM_PFX(AsmWriteMm1);
_AsmWriteMm1: ASM_PFX(AsmWriteMm1):
movd %rcx, %mm1 movd %rcx, %mm1
ret ret

View File

@ -29,7 +29,7 @@
# IN UINT64 Value # IN UINT64 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteMm2; .global ASM_PFX(AsmWriteMm2)
_AsmWriteMm2: ASM_PFX(AsmWriteMm2):
movd %rcx, %mm2 movd %rcx, %mm2
ret ret

View File

@ -29,7 +29,7 @@
# IN UINT64 Value # IN UINT64 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteMm3; .global ASM_PFX(AsmWriteMm3)
_AsmWriteMm3: ASM_PFX(AsmWriteMm3):
movd %rcx, %mm3 movd %rcx, %mm3
ret ret

View File

@ -29,7 +29,7 @@
# IN UINT64 Value # IN UINT64 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteMm4; .global ASM_PFX(AsmWriteMm4)
_AsmWriteMm4: ASM_PFX(AsmWriteMm4):
movd %rcx, %mm4 movd %rcx, %mm4
ret ret

View File

@ -29,7 +29,7 @@
# IN UINT64 Value # IN UINT64 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteMm5; .global ASM_PFX(AsmWriteMm5)
_AsmWriteMm5: ASM_PFX(AsmWriteMm5):
movd %rcx, %mm5 movd %rcx, %mm5
ret ret

View File

@ -29,7 +29,7 @@
# IN UINT64 Value # IN UINT64 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteMm6; .global ASM_PFX(AsmWriteMm6)
_AsmWriteMm6: ASM_PFX(AsmWriteMm6):
movd %rcx, %mm6 movd %rcx, %mm6
ret ret

View File

@ -29,7 +29,7 @@
# IN UINT64 Value # IN UINT64 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteMm7; .global ASM_PFX(AsmWriteMm7)
_AsmWriteMm7: ASM_PFX(AsmWriteMm7):
movd %rcx, %mm7 movd %rcx, %mm7
ret ret

View File

@ -31,9 +31,9 @@
# ); # );
# TODO: # TODO:
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.global _AsmWriteMsr64; .global ASM_PFX(AsmWriteMsr64)
.align 16; .align 16
_AsmWriteMsr64: ASM_PFX(AsmWriteMsr64):
mov %rdx, %rax mov %rdx, %rax
shr $0x20, %rdx shr $0x20, %rdx
wrmsr wrmsr

View File

@ -27,7 +27,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemCompareMem .globl ASM_PFX(InternalMemCompareMem)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# INTN # INTN
@ -38,7 +38,7 @@
# IN UINTN Length # IN UINTN Length
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemCompareMem: ASM_PFX(InternalMemCompareMem):
push %esi push %esi
push %edi push %edi
movl 12(%esp), %esi movl 12(%esp), %esi

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemCopyMem .globl ASM_PFX(InternalMemCopyMem)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID * # VOID *
@ -32,7 +32,7 @@
# IN UINTN Count # IN UINTN Count
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemCopyMem: ASM_PFX(InternalMemCopyMem):
push %esi push %esi
push %edi push %edi
movl 16(%esp), %esi # esi <- Source movl 16(%esp), %esi # esi <- Source

View File

@ -27,7 +27,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemScanMem16 .globl ASM_PFX(InternalMemScanMem16)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# CONST VOID * # CONST VOID *
@ -38,7 +38,7 @@
# IN UINT16 Value # IN UINT16 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemScanMem16: ASM_PFX(InternalMemScanMem16):
push %edi push %edi
movl 12(%esp), %ecx movl 12(%esp), %ecx
movl 8(%esp), %edi movl 8(%esp), %edi

View File

@ -27,7 +27,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemScanMem32 .globl ASM_PFX(InternalMemScanMem32)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# CONST VOID * # CONST VOID *
@ -38,7 +38,7 @@
# IN UINT32 Value # IN UINT32 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemScanMem32: ASM_PFX(InternalMemScanMem32):
push %edi push %edi
movl 12(%esp), %ecx movl 12(%esp), %ecx
movl 8(%esp), %edi movl 8(%esp), %edi

View File

@ -27,7 +27,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemScanMem64 .globl ASM_PFX(InternalMemScanMem64)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# CONST VOID * # CONST VOID *
@ -38,7 +38,7 @@
# IN UINT64 Value # IN UINT64 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemScanMem64: ASM_PFX(InternalMemScanMem64):
push %edi push %edi
movl 12(%esp), %ecx movl 12(%esp), %ecx
movl 16(%esp), %eax movl 16(%esp), %eax

View File

@ -27,7 +27,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemScanMem8 .globl ASM_PFX(InternalMemScanMem8)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# CONST VOID * # CONST VOID *
@ -38,7 +38,7 @@
# IN UINT8 Value # IN UINT8 Value
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemScanMem8: ASM_PFX(InternalMemScanMem8):
push %edi push %edi
movl 12(%esp), %ecx movl 12(%esp), %ecx
movl 8(%esp), %edi movl 8(%esp), %edi

View File

@ -24,7 +24,7 @@
.386: .386:
.code: .code:
.globl _InternalMemSetMem .globl ASM_PFX(InternalMemSetMem)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID * # VOID *
@ -34,7 +34,7 @@
# IN UINT8 Value # IN UINT8 Value
# ) # )
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemSetMem: ASM_PFX(InternalMemSetMem):
push %edi push %edi
movl 16(%esp),%eax movl 16(%esp),%eax
movl 8(%esp),%edi movl 8(%esp),%edi

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemSetMem16 .globl ASM_PFX(InternalMemSetMem16)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID * # VOID *
@ -31,7 +31,7 @@
# IN UINT16 Value # IN UINT16 Value
# ) # )
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemSetMem16: ASM_PFX(InternalMemSetMem16):
push %edi push %edi
movl 16(%esp), %eax movl 16(%esp), %eax
movl 8(%esp), %edi movl 8(%esp), %edi

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemSetMem32 .globl ASM_PFX(InternalMemSetMem32)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID * # VOID *
@ -31,7 +31,7 @@
# IN UINT32 Value # IN UINT32 Value
# ) # )
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemSetMem32: ASM_PFX(InternalMemSetMem32):
push %edi push %edi
movl 16(%esp),%eax movl 16(%esp),%eax
movl 8(%esp),%edi movl 8(%esp),%edi

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemSetMem64 .globl ASM_PFX(InternalMemSetMem64)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID * # VOID *
@ -31,7 +31,7 @@
# IN UINT64 Value # IN UINT64 Value
# ) # )
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemSetMem64: ASM_PFX(InternalMemSetMem64):
push %edi push %edi
movl 12(%esp), %ecx movl 12(%esp), %ecx
movl 16(%esp), %eax movl 16(%esp), %eax

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.globl _InternalMemZeroMem .globl ASM_PFX(InternalMemZeroMem)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# VOID * # VOID *
@ -30,7 +30,7 @@
# IN UINTN Count # IN UINTN Count
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
_InternalMemZeroMem: ASM_PFX(InternalMemZeroMem)
push %edi push %edi
xorl %eax,%eax xorl %eax,%eax
movl 8(%esp),%edi movl 8(%esp),%edi

View File

@ -41,8 +41,8 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.intel_syntax .intel_syntax
.globl _InternalMemCompareMem .globl ASM_PFX(InternalMemCompareMem)
_InternalMemCompareMem: ASM_PFX(InternalMemCompareMem):
push rsi push rsi
push rdi push rdi
mov rsi, rcx mov rsi, rcx

View File

@ -35,8 +35,8 @@
# ) # )
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.intel_syntax .intel_syntax
.globl _InternalMemCopyMem .globl ASM_PFX(InternalMemCopyMem)
_InternalMemCopyMem: ASM_PFX(InternalMemCopyMem)
push rsi push rsi
push rdi push rdi
mov rsi, rdx # rsi <- Source mov rsi, rdx # rsi <- Source

View File

@ -41,8 +41,8 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.intel_syntax .intel_syntax
.globl _InternalMemScanMem16 .globl ASM_PFX(InternalMemScanMem16)
_InternalMemScanMem16: ASM_PFX(InternalMemScanMem16):
push rdi push rdi
mov rdi, rcx mov rdi, rcx
mov rax, r8 mov rax, r8

View File

@ -41,8 +41,8 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.intel_syntax .intel_syntax
.globl _InternalMemScanMem32 .globl ASM_PFX(InternalMemScanMem32)
_InternalMemScanMem32: ASM_PFX(InternalMemScanMem32):
push rdi push rdi
mov rdi, rcx mov rdi, rcx
mov rax, r8 mov rax, r8

View File

@ -41,8 +41,8 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.intel_syntax .intel_syntax
.globl _InternalMemScanMem64 .globl ASM_PFX(InternalMemScanMem64)
_InternalMemScanMem64: ASM_PFX(InternalMemScanMem64):
push rdi push rdi
mov rdi, rcx mov rdi, rcx
mov rax, r8 mov rax, r8

View File

@ -41,8 +41,8 @@
# ); # );
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.intel_syntax .intel_syntax
.globl _InternalMemScanMem8 .globl ASM_PFX(InternalMemScanMem8)
_InternalMemScanMem8: ASM_PFX(InternalMemScanMem8):
push rdi push rdi
mov rdi, rcx mov rdi, rcx
mov rcx, rdx mov rcx, rdx

View File

@ -35,8 +35,8 @@
# ) # )
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.intel_syntax .intel_syntax
.globl _InternalMemSetMem .globl ASM_PFX(InternalMemSetMem)
_InternalMemSetMem: ASM_PFX(InternalMemSetMem):
push rdi push rdi
mov rax, r8 # rax = Value mov rax, r8 # rax = Value
mov rdi, rcx # rdi = Buffer mov rdi, rcx # rdi = Buffer

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