; vi:filetype=nasm ts=8 sts=8 sw=8:
-%define IRQ_OFFSET 32
+PIC1_CMD equ 020h
+PIC2_CMD equ 0a0h
+OCW2_EOI equ 020h
+OCW3_ISR equ 00bh
+IRQ_OFFSET equ 32
%define IRQ_TO_INTR(x) ((x) + IRQ_OFFSET)
%define INTR_TO_IRQ(x) ((x) - IRQ_OFFSET)
+
%macro set_irq_vector 2
push dword IRQ_TO_INTR(%1)
push dword %2
%endmacro
extern idt
+
+%ifndef INTR_ASM_
+ extern set_intr
+%endif