aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/interrupts/interrupts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/interrupts/interrupts.h')
-rw-r--r--src/kernel/interrupts/interrupts.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/kernel/interrupts/interrupts.h b/src/kernel/interrupts/interrupts.h
index 80c9b27..cd96b7c 100644
--- a/src/kernel/interrupts/interrupts.h
+++ b/src/kernel/interrupts/interrupts.h
@@ -1,6 +1,8 @@
#ifndef MELVIX_INTERRUPTS_H
#define MELVIX_INTERRUPTS_H
+#include <stdint.h>
+
/**
* Initialize the Interrupt Descriptor Table with 256 entries
*/
@@ -21,6 +23,16 @@ void idt_set_gate(unsigned char num, unsigned long base, unsigned short sel, uns
void isrs_install();
/**
+ * Ignore interrupt
+ */
+void isr_ignore(uint8_t int_no);
+
+/**
+ * Un-ignore interrupt
+ */
+void isr_remember(uint8_t int_no);
+
+/**
* Registers that get passed into an IRQ handler
*/
struct regs {