summaryrefslogtreecommitdiff
path: root/src/interrupt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interrupt.h')
-rw-r--r--src/interrupt.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/interrupt.h b/src/interrupt.h
index 5e0112b..b308a0c 100644
--- a/src/interrupt.h
+++ b/src/interrupt.h
@@ -31,10 +31,18 @@ void set_int_desc_entry(uint8_t int_number, uint16_t gdt_code_seg,
void interrupt_init();
void start_interrupts();
+void clear_interrupts();
void handle_irq0x00();
void handle_irq0x01();
-void handle_irq0x0D();
+void handle_exception0x00();
+void handle_exception0x01();
+void handle_exception0x02();
+void handle_exception0x03();
+void handle_exception0x06();
+void handle_exception0x07();
+void handle_exception0x08();
+void handle_exception0x0D();
void int_ignore();
@@ -43,4 +51,10 @@ struct port pic_master_data;
struct port pic_slave_command;
struct port pic_slave_data;
+typedef void irqh_t();
+
+#define INT_MASK 0x00
+
+#define PIC_EOI 0x20
+
#endif