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
|
||||
.globl ASM_PFX(AsmGetVectorTemplatInfo)
|
||||
.globl ASM_PFX(AsmVectorFixup)
|
||||
ASM_GLOBAL ASM_PFX(AsmGetVectorTemplatInfo)
|
||||
ASM_GLOBAL ASM_PFX(AsmVectorFixup)
|
||||
/*
|
||||
;
|
||||
;-----------------------------------------------------------------------
|
||||
|
@@ -12,11 +12,11 @@
|
||||
#
|
||||
#**/
|
||||
|
||||
.globl ASM_PFX(OrigVector)
|
||||
.globl ASM_PFX(InterruptEntryStub)
|
||||
.globl ASM_PFX(StubSize)
|
||||
.globl ASM_PFX(CommonIdtEntry)
|
||||
.globl ASM_PFX(FxStorSupport)
|
||||
ASM_GLOBAL ASM_PFX(OrigVector)
|
||||
ASM_GLOBAL ASM_PFX(InterruptEntryStub)
|
||||
ASM_GLOBAL ASM_PFX(StubSize)
|
||||
ASM_GLOBAL ASM_PFX(CommonIdtEntry)
|
||||
ASM_GLOBAL ASM_PFX(FxStorSupport)
|
||||
|
||||
ASM_PFX(StubSize): .long ASM_PFX(InterruptEntryStubEnd) - ASM_PFX(InterruptEntryStub)
|
||||
ASM_PFX(AppEsp): .long 0x11111111 # ?
|
||||
@@ -34,7 +34,7 @@ ASM_PFX(OrigVector): .long 0x66666666 # ?
|
||||
#
|
||||
# Abstract: Returns TRUE if FxStor instructions are supported
|
||||
#
|
||||
.globl ASM_PFX(FxStorSupport)
|
||||
ASM_GLOBAL ASM_PFX(FxStorSupport)
|
||||
ASM_PFX(FxStorSupport):
|
||||
#
|
||||
# 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
|
||||
#
|
||||
|
||||
.globl ASM_PFX(Vect2Desc)
|
||||
ASM_GLOBAL ASM_PFX(Vect2Desc)
|
||||
ASM_PFX(Vect2Desc):
|
||||
push %ebp
|
||||
mov %esp,%ebp
|
||||
@@ -71,13 +71,13 @@ ASM_PFX(Vect2Desc):
|
||||
leave
|
||||
ret
|
||||
|
||||
.globl ASM_PFX(InterruptEntryStub)
|
||||
ASM_GLOBAL ASM_PFX(InterruptEntryStub)
|
||||
ASM_PFX(InterruptEntryStub):
|
||||
mov %esp,0x0 # save stack top
|
||||
mov $0x0,%esp # switch to debugger stack
|
||||
push $0x0 # push vector number - will be modified before installed
|
||||
jmp ASM_PFX(CommonIdtEntry) # jump CommonIdtEntry
|
||||
.globl ASM_PFX(InterruptEntryStubEnd)
|
||||
ASM_GLOBAL 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
|
||||
# vectors.
|
||||
#
|
||||
.globl ASM_PFX(CommonIdtEntry)
|
||||
ASM_GLOBAL ASM_PFX(CommonIdtEntry)
|
||||
ASM_PFX(CommonIdtEntry):
|
||||
##
|
||||
## At this point, the stub has saved the current application stack esp into AppEsp
|
||||
|
@@ -16,10 +16,10 @@
|
||||
#include "Common.i"
|
||||
#include "Ds64Macros.i"
|
||||
|
||||
.globl PatchSaveBuffer
|
||||
.globl IpfContextBuf
|
||||
.globl CommonHandler
|
||||
.globl ExternalInterruptCount
|
||||
ASM_GLOBAL PatchSaveBuffer
|
||||
ASM_GLOBAL IpfContextBuf
|
||||
ASM_GLOBAL CommonHandler
|
||||
ASM_GLOBAL ExternalInterruptCount
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
@@ -30,7 +30,7 @@
|
||||
// Description:
|
||||
// Flushes instruction cache for specified number of bytes
|
||||
//
|
||||
.globl InstructionCacheFlush
|
||||
ASM_GLOBAL InstructionCacheFlush
|
||||
.proc InstructionCacheFlush
|
||||
.align 32
|
||||
InstructionCacheFlush::
|
||||
@@ -158,7 +158,7 @@ LoopBack: // $L143:
|
||||
// Notes:
|
||||
//
|
||||
//
|
||||
.globl ChainHandler
|
||||
ASM_GLOBAL ChainHandler
|
||||
.proc ChainHandler
|
||||
ChainHandler:
|
||||
|
||||
@@ -233,7 +233,7 @@ ChainHandlerDone:
|
||||
// Notes:
|
||||
//
|
||||
//
|
||||
.globl UnchainHandler
|
||||
ASM_GLOBAL UnchainHandler
|
||||
.proc UnchainHandler
|
||||
|
||||
UnchainHandler:
|
||||
@@ -666,7 +666,7 @@ SetSlotDone:
|
||||
// Returns:
|
||||
// Current value if IVA
|
||||
|
||||
.globl GetIva
|
||||
ASM_GLOBAL GetIva
|
||||
.proc GetIva
|
||||
GetIva:
|
||||
mov r8=cr2;;
|
||||
@@ -686,7 +686,7 @@ GetIva:
|
||||
// Returns:
|
||||
// Previous state of psr.ic
|
||||
//
|
||||
.globl ProgramInterruptFlags
|
||||
ASM_GLOBAL ProgramInterruptFlags
|
||||
.proc ProgramInterruptFlags
|
||||
ProgramInterruptFlags:
|
||||
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
|
||||
// to the IVT entry.
|
||||
|
||||
.globl HookStub
|
||||
ASM_GLOBAL HookStub
|
||||
.proc HookStub
|
||||
HookStub:
|
||||
|
||||
|
@@ -14,11 +14,11 @@
|
||||
|
||||
.intel_syntax noprefix
|
||||
|
||||
.globl ASM_PFX(OrigVector)
|
||||
.globl ASM_PFX(InterruptEntryStub)
|
||||
.globl ASM_PFX(StubSize)
|
||||
.globl ASM_PFX(CommonIdtEntry)
|
||||
.globl ASM_PFX(FxStorSupport)
|
||||
ASM_GLOBAL ASM_PFX(OrigVector)
|
||||
ASM_GLOBAL ASM_PFX(InterruptEntryStub)
|
||||
ASM_GLOBAL ASM_PFX(StubSize)
|
||||
ASM_GLOBAL ASM_PFX(CommonIdtEntry)
|
||||
ASM_GLOBAL ASM_PFX(FxStorSupport)
|
||||
|
||||
.data
|
||||
|
||||
@@ -94,7 +94,7 @@ DebugStackBegin : .ascii "<<<< DbgStkBegin" # initial debug ESP == DebugSta
|
||||
#
|
||||
# Abstract: Returns TRUE if FxStor instructions are supported
|
||||
#
|
||||
.globl ASM_PFX(FxStorSupport)
|
||||
ASM_GLOBAL ASM_PFX(FxStorSupport)
|
||||
ASM_PFX(FxStorSupport):
|
||||
#
|
||||
# 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
|
||||
#
|
||||
.globl ASM_PFX(Vect2Desc)
|
||||
ASM_GLOBAL ASM_PFX(Vect2Desc)
|
||||
ASM_PFX(Vect2Desc):
|
||||
mov rax, rdx
|
||||
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
|
||||
# copied and fixed up once for each IDT entry that is hooked.
|
||||
#
|
||||
.globl ASM_PFX(InterruptEntryStub)
|
||||
ASM_GLOBAL ASM_PFX(InterruptEntryStub)
|
||||
ASM_PFX(InterruptEntryStub):
|
||||
|
||||
push 0 # push vector number - will be modified before installed
|
||||
jmp ASM_PFX(CommonIdtEntry)
|
||||
|
||||
.globl ASM_PFX(InterruptEntryStubEnd)
|
||||
ASM_GLOBAL 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
|
||||
# vectors.
|
||||
#
|
||||
.globl ASM_PFX(CommonIdtEntry)
|
||||
ASM_GLOBAL ASM_PFX(CommonIdtEntry)
|
||||
##
|
||||
## 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
|
||||
|
@@ -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):
|
||||
push %ebp
|
||||
push %ebx
|
||||
@@ -42,16 +42,16 @@ ASM_PFX(EbcLLCALLEXNative):
|
||||
pop %ebp
|
||||
ret
|
||||
|
||||
.globl ASM_PFX(EbcLLGetEbcEntryPoint)
|
||||
ASM_GLOBAL ASM_PFX(EbcLLGetEbcEntryPoint)
|
||||
ASM_PFX(EbcLLGetEbcEntryPoint):
|
||||
ret
|
||||
|
||||
.globl ASM_PFX(EbcLLGetStackPointer)
|
||||
ASM_GLOBAL ASM_PFX(EbcLLGetStackPointer)
|
||||
ASM_PFX(EbcLLGetStackPointer):
|
||||
mov %esp,%eax
|
||||
add $0x4,%eax
|
||||
ret
|
||||
|
||||
.globl ASM_PFX(EbcLLGetReturnValue)
|
||||
ASM_GLOBAL ASM_PFX(EbcLLGetReturnValue)
|
||||
ASM_PFX(EbcLLGetReturnValue):
|
||||
ret
|
||||
|
Reference in New Issue
Block a user