-IRQ7_SEL equ $-IDT_BASE\r
- dw 0 # offset 15:0\r
- dw SYS_CODE_SEL # selector 15:0\r
- db 0 # 0 for interrupt gate\r
- db 0eh OR 80h # (10001110)type = 386 interrupt gate, present\r
- dw 0 # offset 31:16\r
-\r
-# IRQ 8 (RTC Alarm) - (INT 70h)\r
-IRQ8_SEL equ $-IDT_BASE\r
- dw 0 # offset 15:0\r
- dw SYS_CODE_SEL # selector 15:0\r
- db 0 # 0 for interrupt gate\r
- db 0eh OR 80h # (10001110)type = 386 interrupt gate, present\r
- dw 0 # offset 31:16\r
-\r
-# IRQ 9 - (INT 71h)\r
-IRQ9_SEL equ $-IDT_BASE\r
- dw 0 # offset 15:0\r
- dw SYS_CODE_SEL # selector 15:0\r
- db 0 # 0 for interrupt gate\r
- db 0eh OR 80h # (10001110)type = 386 interrupt gate, present\r
- dw 0 # offset 31:16\r
-\r
-# IRQ 10 - (INT 72h)\r
-IRQ10_SEL equ $-IDT_BASE\r
- dw 0 # offset 15:0\r
- dw SYS_CODE_SEL # selector 15:0\r
- db 0 # 0 for interrupt gate\r
- db 0eh OR 80h # (10001110)type = 386 interrupt gate, present\r
- dw 0 # offset 31:16\r
-\r
-# IRQ 11 - (INT 73h)\r
-IRQ11_SEL equ $-IDT_BASE\r
- dw 0 # offset 15:0\r
- dw SYS_CODE_SEL # selector 15:0\r
- db 0 # 0 for interrupt gate\r
- db 0eh OR 80h # (10001110)type = 386 interrupt gate, present\r
- dw 0 # offset 31:16\r
-\r
-# IRQ 12 (PS/2 mouse) - (INT 74h)\r
-IRQ12_SEL equ $-IDT_BASE\r
- dw 0 # offset 15:0\r
- dw SYS_CODE_SEL # selector 15:0\r
- db 0 # 0 for interrupt gate\r
- db 0eh OR 80h # (10001110)type = 386 interrupt gate, present\r
- dw 0 # offset 31:16\r
-\r
-# IRQ 13 (Floating point error) - (INT 75h)\r
-IRQ13_SEL equ $-IDT_BASE\r
- dw 0 # offset 15:0\r
- dw SYS_CODE_SEL # selector 15:0\r
- db 0 # 0 for interrupt gate\r
- db 0eh OR 80h # (10001110)type = 386 interrupt gate, present\r
- dw 0 # offset 31:16\r
-\r
-# IRQ 14 (Secondary IDE) - (INT 76h)\r
-IRQ14_SEL equ $-IDT_BASE\r
- dw 0 # offset 15:0\r
- dw SYS_CODE_SEL # selector 15:0\r
- db 0 # 0 for interrupt gate\r
- db 0eh OR 80h # (10001110)type = 386 interrupt gate, present\r
- dw 0 # offset 31:16\r
-\r
-# IRQ 15 (Primary IDE) - (INT 77h)\r
-IRQ15_SEL equ $-IDT_BASE\r
- dw 0 # offset 15:0\r
- dw SYS_CODE_SEL # selector 15:0\r
- db 0 # 0 for interrupt gate\r
- db 0eh OR 80h # (10001110)type = 386 interrupt gate, present\r
- dw 0 # offset 31:16\r
-\r
- db (1 * 8) dup(0)\r
-\r
-**/\r
+IRQ7_SEL = .-IDT_BASE\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
+\r
+# IRQ 8 (RTC Alarm) - (INT 0x70)\r
+IRQ8_SEL = .-IDT_BASE\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
+\r
+# IRQ 9 - (INT 0x71)\r
+IRQ9_SEL = .-IDT_BASE\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
+\r
+# IRQ 10 - (INT 0x72)\r
+IRQ10_SEL = .-IDT_BASE\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
+\r
+# IRQ 11 - (INT 0x73)\r
+IRQ11_SEL = .-IDT_BASE\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
+\r
+# IRQ 12 (PS/2 mouse) - (INT 0x74)\r
+IRQ12_SEL = .-IDT_BASE\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
+\r
+# IRQ 13 (Floating point error) - (INT 0x75)\r
+IRQ13_SEL = .-IDT_BASE\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
+\r
+# IRQ 14 (Secondary IDE) - (INT 0x76)\r
+IRQ14_SEL = .-IDT_BASE\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
+\r
+# IRQ 15 (Primary IDE) - (INT 0x77)\r
+IRQ15_SEL = .-IDT_BASE\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
+\r
+ .rept 1 * 8\r
+ .byte 0\r
+ .endr\r
+\r