summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/interrupt.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/interrupt.h')
-rw-r--r--arch/x86_64/interrupt.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86_64/interrupt.h b/arch/x86_64/interrupt.h
new file mode 100644
index 0000000..9ae63f9
--- /dev/null
+++ b/arch/x86_64/interrupt.h
@@ -0,0 +1,11 @@
+#ifndef JOVE_ARCH_INTERRUPT_H
+#define JOVE_ARCH_INTERRUPT_H 1
+
+#include "cpu.h"
+
+/**Register a handler for a specified interrupt code.
+ * @param code interrupt to handle.
+ * @param handler to call.*/
+void int_set_handler(unsigned char code, struct Registers *(*handler)(struct Registers*));
+
+#endif