Detab in DuetPkg

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9170 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2009-08-21 02:51:09 +00:00
parent 10b48963c8
commit b29a823d91
22 changed files with 626 additions and 626 deletions

View File

@@ -23,12 +23,12 @@
#EXTERN ExceptionHandler: NEAR
#EXTERN mTimerVector: DWORD
.data
ASM_GLOBAL ASM_PFX(mExceptionCodeSize)
.data
ASM_GLOBAL ASM_PFX(mExceptionCodeSize)
ASM_PFX(mExceptionCodeSize): .long 9
.text
ASM_GLOBAL ASM_PFX(InitDescriptor)
.text
ASM_GLOBAL ASM_PFX(InitDescriptor)
ASM_PFX(InitDescriptor):
movq $GDT_BASE,%rax # EAX=PHYSICAL address of gdt
@@ -47,7 +47,7 @@ ASM_PFX(InitDescriptor):
# UINTN Vector,
# VOID (*Handler)(VOID)
# )
ASM_GLOBAL ASM_PFX(InstallInterruptHandler)
ASM_GLOBAL ASM_PFX(InstallInterruptHandler)
ASM_PFX(InstallInterruptHandler):
# Vector:DWORD @ 4(%esp)
# Handler:DWORD @ 8(%esp)
@@ -73,7 +73,7 @@ ASM_PFX(InstallInterruptHandler):
pop %rbx
ret
.macro JmpCommonIdtEntry
.macro JmpCommonIdtEntry
# jmp commonIdtEntry - this must be hand coded to keep the assembler from
# using a 8 bit reletive jump when the entries are
# within 255 bytes of the common entry. This must
@@ -81,10 +81,10 @@ ASM_PFX(InstallInterruptHandler):
# of entry points...
.byte 0xe9 # jmp 16 bit reletive
.long commonIdtEntry - . - 4 # offset to jump to
.endm
.endm
.p2align 1
ASM_GLOBAL ASM_PFX(SystemExceptionHandler)
ASM_GLOBAL ASM_PFX(SystemExceptionHandler)
ASM_PFX(SystemExceptionHandler):
INT0:
push $0x0 # push error code place holder on the stack
@@ -203,15 +203,15 @@ INT19:
JmpCommonIdtEntry
INTUnknown:
.rept (32 - 20)
.rept (32 - 20)
push $0x0 # push error code place holder on the stack
# push xxh # push vector number
.byte 0x6a
.byte ( . - INTUnknown - 3 ) / 9 + 20 # vector number
JmpCommonIdtEntry
.endr
.endr
ASM_GLOBAL ASM_PFX(SystemTimerHandler)
ASM_GLOBAL ASM_PFX(SystemTimerHandler)
ASM_PFX(SystemTimerHandler):
push $0
push $ASM_PFX(mTimerVector)
@@ -452,10 +452,10 @@ ExceptionDone:
# data
##############################################################################
.data
.data
.p2align 4
gdtr: .short GDT_END - GDT_BASE - 1 # GDT limit
gdtr: .short GDT_END - GDT_BASE - 1 # GDT limit
.quad 0 # (GDT base gets set above)
##############################################################################
# global descriptor table (GDT)
@@ -542,7 +542,7 @@ GDT_END:
idtr: .short IDT_END - IDT_BASE - 1 # IDT limit
idtr: .short IDT_END - IDT_BASE - 1 # IDT limit
.quad 0 # (IDT base gets set above)
##############################################################################
# interrupt descriptor table (IDT)
@@ -717,16 +717,16 @@ SIMD_EXCEPTION_SEL = .-IDT_BASE
.byte 0x0e | 0x80 # (10001110)type = 386 interrupt gate, present
.short 0 # offset 31:16
.rept (32 - 20)
.rept (32 - 20)
.short 0 # offset 15:0
.short SYS_CODE_SEL # selector 15:0
.byte 0 # 0 for interrupt gate
.byte 0x0e | 0x80 # (10001110)type = 386 interrupt gate, present
.short 0 # offset 31:16
.endr
.endr
# 72 unspecified descriptors
.fill 72 * 8, 1, 0
.fill 72 * 8, 1, 0
# IRQ 0 (System timer) - (INT 0x68)
IRQ0_SEL = .-IDT_BASE
@@ -856,7 +856,7 @@ IRQ15_SEL = .-IDT_BASE
.byte 0x0e | 0x80 # (10001110)type = 386 interrupt gate, present
.short 0 # offset 31:16
.fill 16, 1, 0
.fill 16, 1, 0
IDT_END: