]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/CpuDxe/Ia32/CpuInterrupt.S
Detab in DuetPkg
[mirror_edk2.git] / DuetPkg / CpuDxe / Ia32 / CpuInterrupt.S
index 7af1dd11e333acc13f2b742b0b1b78af10b8a99e..ae44efca78f684b0277a784b1b0193a0fe3764d5 100644 (file)
 #EXTERN ExceptionHandler: NEAR\r
 #EXTERN mTimerVector: DWORD\r
 \r
-       .data\r
-       ASM_GLOBAL ASM_PFX(mExceptionCodeSize)\r
+  .data\r
+  ASM_GLOBAL ASM_PFX(mExceptionCodeSize)\r
 ASM_PFX(mExceptionCodeSize): .long  9\r
 \r
-       .text\r
-       ASM_GLOBAL ASM_PFX(InitDescriptor)\r
+  .text\r
+  ASM_GLOBAL ASM_PFX(InitDescriptor)\r
 \r
 ASM_PFX(InitDescriptor):\r
         movl    $GDT_BASE,%eax              # EAX=PHYSICAL address of gdt\r
@@ -44,7 +44,7 @@ ASM_PFX(InitDescriptor):
 #     UINTN Vector,\r
 #     VOID  (*Handler)(VOID)\r
 #     )\r
-       ASM_GLOBAL ASM_PFX(InstallInterruptHandler)\r
+  ASM_GLOBAL ASM_PFX(InstallInterruptHandler)\r
 ASM_PFX(InstallInterruptHandler):\r
 #  Vector:DWORD @ 4(%esp)\r
 #  Handler:DWORD @ 8(%esp)\r
@@ -68,7 +68,7 @@ ASM_PFX(InstallInterruptHandler):
         pop     %edi\r
         ret\r
 \r
-       .macro JmpCommonIdtEntry\r
+  .macro JmpCommonIdtEntry\r
     # jmp     commonIdtEntry - this must be hand coded to keep the assembler from\r
     #                          using a 8 bit reletive jump when the entries are\r
     #                          within 255 bytes of the common entry.  This must\r
@@ -76,10 +76,10 @@ ASM_PFX(InstallInterruptHandler):
     #                          of entry points...\r
     .byte     0xe9                        # jmp 16 bit reletive \r
     .long     commonIdtEntry - . - 4      #  offset to jump to\r
-       .endm\r
+  .endm\r
 \r
     .p2align 1\r
-       ASM_GLOBAL ASM_PFX(SystemExceptionHandler)\r
+  ASM_GLOBAL ASM_PFX(SystemExceptionHandler)\r
 ASM_PFX(SystemExceptionHandler):\r
 INT0:\r
     pushl    $0x0      # push error code place holder on the stack\r
@@ -198,15 +198,15 @@ INT19:
     JmpCommonIdtEntry\r
 \r
 INTUnknown:\r
-       .rept (32 - 20)\r
+  .rept (32 - 20)\r
     pushl    $0x0      # push error code place holder on the stack\r
 #    push    xxh     # push vector number\r
     .byte    0x6a\r
     .byte    ( . - INTUnknown - 3 ) / 9 + 20 # vector number\r
     JmpCommonIdtEntry\r
-       .endr\r
+  .endr\r
 \r
-       ASM_GLOBAL ASM_PFX(SystemTimerHandler)\r
+  ASM_GLOBAL ASM_PFX(SystemTimerHandler)\r
 ASM_PFX(SystemTimerHandler):\r
     pushl    $0\r
     pushl    $ASM_PFX(mTimerVector)\r
@@ -417,10 +417,10 @@ ExceptionDone:
 # data\r
 #;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
 \r
-       .data\r
+  .data\r
         .p2align 2\r
 \r
-gdtr:  .short GDT_END - GDT_BASE - 1   # GDT limit\r
+gdtr: .short GDT_END - GDT_BASE - 1   # GDT limit\r
         .long 0                         # (GDT base gets set above)\r
 #;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
 #   global descriptor table (GDT)\r
@@ -507,7 +507,7 @@ GDT_END:
 \r
 \r
 \r
-idtr:  .short IDT_END - IDT_BASE - 1   # IDT limit\r
+idtr: .short IDT_END - IDT_BASE - 1   # IDT limit\r
         .long 0                         # (IDT base gets set above)\r
 #;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
 #   interrupt descriptor table (IDT)\r
@@ -682,16 +682,16 @@ SIMD_EXCEPTION_SEL  = .-IDT_BASE
         .byte 0x0e | 0x80   # (10001110)type = 386 interrupt gate, present\r
         .short 0            # offset 31:16\r
 \r
-       .rept  (32 - 20)\r
+  .rept  (32 - 20)\r
         .short 0            # offset 15:0\r
         .short SYS_CODE_SEL # selector 15:0\r
         .byte 0             # 0 for interrupt gate\r
         .byte 0x0e | 0x80   # (10001110)type = 386 interrupt gate, present\r
         .short 0            # offset 31:16\r
-       .endr\r
+  .endr\r
 \r
 # 72 unspecified descriptors\r
-       .fill 72 * 8, 1, 0\r
+  .fill 72 * 8, 1, 0\r
         \r
 # IRQ 0 (System timer) - (INT 0x68)\r
 IRQ0_SEL            = .-IDT_BASE\r
@@ -821,7 +821,7 @@ IRQ15_SEL            = .-IDT_BASE
         .byte 0x0e | 0x80   # (10001110)type = 386 interrupt gate, present\r
         .short 0            # offset 31:16\r
 \r
-       .fill 1 * 8, 1, 0\r
+  .fill 1 * 8, 1, 0\r
 \r
 IDT_END:\r
 \r