Use ASM_PFX to optionnaly set the underscore prefix

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2180 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
tgingold
2007-01-06 14:53:34 +00:00
parent a2b1bf96b3
commit 0dce6dc1b7
2 changed files with 55 additions and 55 deletions

View File

@ -11,22 +11,22 @@
#* #*
#****************************************************************************** #******************************************************************************
.globl _OrigVector .globl ASM_PFX(OrigVector)
.globl _InterruptEntryStub .globl ASM_PFX(InterruptEntryStub)
.globl _StubSize .globl ASM_PFX(StubSize)
.globl _CommonIdtEntry .globl ASM_PFX(CommonIdtEntry)
.globl _FxStorSupport .globl ASM_PFX(FxStorSupport)
_AppEsp: .long 0x11111111 # ? ASM_PFX(AppEsp): .long 0x11111111 # ?
_DebugEsp: .long 0x22222222 # ? ASM_PFX(DebugEsp): .long 0x22222222 # ?
_ExtraPush: .long 0x33333333 # ? ASM_PFX(ExtraPush): .long 0x33333333 # ?
_ExceptData: .long 0x44444444 # ? ASM_PFX(ExceptData): .long 0x44444444 # ?
_Eflags: .long 0x55555555 # ? ASM_PFX(Eflags): .long 0x55555555 # ?
_OrigVector: .long 0x66666666 # ? ASM_PFX(OrigVector): .long 0x66666666 # ?
_StubSize: .long _InterruptEntryStubEnd - _InterruptEntryStub ASM_PFX(StubSize): .long ASM_PFX(InterruptEntryStubEnd) - ASM_PFX(InterruptEntryStub)
.globl _FxStorSupport .globl ASM_PFX(FxStorSupport)
_FxStorSupport: ASM_PFX(FxStorSupport):
push %ebx push %ebx
mov $0x1,%eax mov $0x1,%eax
cpuid cpuid
@ -36,8 +36,8 @@ _FxStorSupport:
pop %ebx pop %ebx
ret ret
.globl _GetIdtr .globl ASM_PFX(GetIdtr)
_GetIdtr: ASM_PFX(GetIdtr):
push %ebp push %ebp
mov %esp,%ebp mov %esp,%ebp
add $0xfffffff8,%esp add $0xfffffff8,%esp
@ -46,8 +46,8 @@ _GetIdtr:
leave leave
ret ret
.globl _WriteInterruptFlag .globl ASM_PFX(WriteInterruptFlag)
_WriteInterruptFlag: ASM_PFX(WriteInterruptFlag):
push %ebp push %ebp
mov %esp,%ebp mov %esp,%ebp
pushf pushf
@ -56,15 +56,15 @@ _WriteInterruptFlag:
shr $0x9,%eax shr $0x9,%eax
mov 0x8(%ebp),%ecx mov 0x8(%ebp),%ecx
or %ecx,%ecx or %ecx,%ecx
jne _WriteInterruptFlag+0x17 jne ASM_PFX(WriteInterruptFlag+0x17)
cli cli
jmp _WriteInterruptFlag+0x18 jmp ASM_PFX(WriteInterruptFlag+0x18)
sti sti
leave leave
ret ret
.globl _Vect2Desc .globl ASM_PFX(Vect2Desc)
_Vect2Desc: ASM_PFX(Vect2Desc):
push %ebp push %ebp
mov %esp,%ebp mov %esp,%ebp
mov 0xc(%ebp),%eax mov 0xc(%ebp),%eax
@ -77,58 +77,58 @@ _Vect2Desc:
leave leave
ret ret
.globl _InterruptEntryStub .globl ASM_PFX(InterruptEntryStub)
_InterruptEntryStub: ASM_PFX(InterruptEntryStub):
mov %esp,0x0 mov %esp,0x0
mov $0x0,%esp mov $0x0,%esp
push $0x0 push $0x0
jmp _CommonIdtEntry jmp ASM_PFX(CommonIdtEntry)
.globl _InterruptEntryStubEnd .globl ASM_PFX(InterruptEntryStubEnd)
_InterruptEntryStubEnd: ASM_PFX(InterruptEntryStubEnd):
.globl _CommonIdtEntry .globl ASM_PFX(CommonIdtEntry)
_CommonIdtEntry: ASM_PFX(CommonIdtEntry):
pusha pusha
pushf pushf
pop %eax pop %eax
mov %eax,0x0 mov %eax,0x0
cmpl $0x8,0x0 cmpl $0x8,0x0
jne _CommonIdtEntry+0x20 jne ASM_PFX(CommonIdtEntry+0x20)
movl $0x1,0x0 movl $0x1,0x0
jmp _CommonIdtEntry+0xa8 jmp ASM_PFX(CommonIdtEntry+0xa8)
cmpl $0xa,0x0 cmpl $0xa,0x0
jne _CommonIdtEntry+0x35 jne ASM_PFX(CommonIdtEntry+0x35)
movl $0x1,0x0 movl $0x1,0x0
jmp _CommonIdtEntry+0xa8 jmp ASM_PFX(CommonIdtEntry+0xa8)
cmpl $0xb,0x0 cmpl $0xb,0x0
jne _CommonIdtEntry+0x4a jne ASM_PFX(CommonIdtEntry+0x4a)
movl $0x1,0x0 movl $0x1,0x0
jmp _CommonIdtEntry+0xa8 jmp ASM_PFX(CommonIdtEntry+0xa8)
cmpl $0xc,0x0 cmpl $0xc,0x0
jne _CommonIdtEntry+0x5f jne ASM_PFX(CommonIdtEntry+0x5f)
movl $0x1,0x0 movl $0x1,0x0
jmp _CommonIdtEntry+0xa8 jmp ASM_PFX(CommonIdtEntry+0xa8)
cmpl $0xd,0x0 cmpl $0xd,0x0
jne _CommonIdtEntry+0x74 jne ASM_PFX(CommonIdtEntry+0x74)
movl $0x1,0x0 movl $0x1,0x0
jmp _CommonIdtEntry+0xa8 jmp ASM_PFX(CommonIdtEntry+0xa8)
cmpl $0xe,0x0 cmpl $0xe,0x0
jne _CommonIdtEntry+0x89 jne ASM_PFX(CommonIdtEntry+0x89)
movl $0x1,0x0 movl $0x1,0x0
jmp _CommonIdtEntry+0xa8 jmp ASM_PFX(CommonIdtEntry+0xa8)
cmpl $0x11,0x0 cmpl $0x11,0x0
jne _CommonIdtEntry+0x9e jne ASM_PFX(CommonIdtEntry+0x9e)
movl $0x1,0x0 movl $0x1,0x0
jmp _CommonIdtEntry+0xa8 jmp ASM_PFX(CommonIdtEntry+0xa8)
movl $0x0,0x0 movl $0x0,0x0
cmpl $0x1,0x0 cmpl $0x1,0x0
jne _CommonIdtEntry+0xc8 jne ASM_PFX(CommonIdtEntry+0xc8)
mov 0x0,%eax mov 0x0,%eax
mov (%eax),%ebx mov (%eax),%ebx
mov %ebx,0x0 mov %ebx,0x0
add $0x4,%eax add $0x4,%eax
mov %eax,0x0 mov %eax,0x0
jmp _CommonIdtEntry+0xd2 jmp ASM_PFX(CommonIdtEntry+0xd2)
movl $0x0,0x0 movl $0x0,0x0
mov 0xc(%esp),%eax mov 0xc(%esp),%eax
mov %eax,0x0 mov %eax,0x0
@ -199,7 +199,7 @@ _CommonIdtEntry:
push %eax push %eax
mov 0x0,%eax mov 0x0,%eax
push %eax push %eax
call _CommonIdtEntry+0x184 call ASM_PFX(CommonIdtEntry+0x184)
add $0x8,%esp add $0x8,%esp
add $0x4,%esp add $0x4,%esp
mov %esp,%esi mov %esp,%esi
@ -239,7 +239,7 @@ _CommonIdtEntry:
mov 0x0,%eax mov 0x0,%eax
add $0xc,%eax add $0xc,%eax
cmp %eax,%ebx cmp %eax,%ebx
je _CommonIdtEntry+0x202 je ASM_PFX(CommonIdtEntry+0x202)
mov 0x0,%eax mov 0x0,%eax
mov (%eax),%ecx mov (%eax),%ecx
mov %ecx,(%ebx) mov %ecx,(%ebx)

View File

@ -10,8 +10,8 @@
#* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#* #*
#**************************************************************************** #****************************************************************************
.globl _EbcLLCALLEXNative .globl ASM_PFX(EbcLLCALLEXNative)
_EbcLLCALLEXNative: ASM_PFX(EbcLLCALLEXNative):
push %ebp push %ebp
mov %esp,%ebp mov %esp,%ebp
mov 0x8(%esp),%ecx mov 0x8(%esp),%ecx
@ -23,16 +23,16 @@ _EbcLLCALLEXNative:
pop %ebp pop %ebp
ret ret
.globl _EbcLLGetEbcEntryPoint .globl ASM_PFX(EbcLLGetEbcEntryPoint)
_EbcLLGetEbcEntryPoint: ASM_PFX(EbcLLGetEbcEntryPoint):
ret ret
.globl _EbcLLGetStackPointer .globl ASM_PFX(EbcLLGetStackPointer)
_EbcLLGetStackPointer: ASM_PFX(EbcLLGetStackPointer):
mov %esp,%eax mov %esp,%eax
add $0x4,%eax add $0x4,%eax
ret ret
.globl _EbcLLGetReturnValue .globl ASM_PFX(EbcLLGetReturnValue)
_EbcLLGetReturnValue: ASM_PFX(EbcLLGetReturnValue):
ret ret